PUT https://app.alaaqat.com/api/tickets/{_id}
Where _id is the ticket's identifier.
Accept: application/json
This endpoint accepts custom properties in the body, read properties.
syntax is property_internal_name: value
{
"ticket_name": "ticket_name",
"desc": "test text",
"category": "billing_issue"
}
If a property you send is a unique key, its value must not already belong to another ticket. Otherwise nothing is updated, and the request is refused with 422 with the error reported on that field.
The return type will always be Ticket.
{
"data": {
"properties": {
"_id": "66985cc15b6b9ecd2e0aa1e2",
"ticket_name": "ticket_name",
"desc": "test text",
"category": "billing_issue",
"source": "source_manual",
"updated_at": "2024-07-18T00:44:42.936000Z",
"created_at": "2024-07-18T00:07:29.801000Z"
}
},
"message": "Entity was modified Successfully"
}