Create New Ticket

POST https://app.alaaqat.com/api/tickets

Before requesting check the type of properties.

Relationship between Ticket and Contact

contact_ids is an array used to link contacts in tickets.

Relationship between Ticket and Deal

deal_ids is an array used to link contacts in tickets.

Header

Accept: application/json

Body

This endpoint accepts custom properties in the body, read properties.

syntax is property_internal_name: value

{
  "ticket_name": "test",
  "desc": "test text",
  "category": "general_inquiry",
  "contact_ids": [
    "6692950d963ee0713f0997f3"
  ],
  "deal_ids": [
    "66913c76192ef1f9420fa130"
  ]
}

Response

The return type will always be Ticket.

{
    "data": {
        "properties": {
            "ticket_name": "test",
            "desc": "test text",
            "category": "general_inquiry",
            "source": "source_manual",
            "updated_at": "2024-07-18T00:56:17.088000Z",
            "created_at": "2024-07-18T00:56:13.326000Z",
            "_id": "6698682d5b6b9ecd2e0aa1ea",
            "contacts_count": 1,
            "deals_count": 1
        }
    },
    "message": "Entity was created Successfully"
}