Skip to main content

Set Ticket Custom Attributes

PATCH 

/accounts/:account_id/conversations/:conversation_id/tickets/:ticket_id

Replaces the ticket's custom attributes with the given object.

The ticket's custom_attributes are replaced: keys you leave out are removed, so send the full object. To remove only some keys, use Delete Ticket Custom Attributes. See List Tickets for what a ticket is.

SettingValue
MethodPATCH (or PUT)
Path/api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/{ticket_id}

Permissions:

Path parameters

NameTypeRequiredDescription
account_idintegerYesAccount ID.
conversation_idintegerYesConversation display ID.
ticket_idintegerYesTicket ID (must belong to this conversation).

Body parameters (JSON)

NameTypeRequiredDescription
custom_attributesobjectYesKey/value pairs to store on the ticket. Keys not sent are removed.

Example request

curl -X PATCH 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/tickets/903' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "custom_attributes": { "case_type": "refund", "order_id": "A-1001", "refund_amount": 85 } }'

Example response (200 OK). conversation_id is the internal ID, not the display ID used in the path.

{
"conversation_id": 2301,
"custom_attributes": {
"case_type": "refund",
"order_id": "A-1001",
"refund_amount": 85
},
"id": 903,
"account_id": 12,
"inbox_id": 31,
"channel_name": "Channel::Api",
"contact_id": 801,
"initiated_by": "user",
"resolved_by_id": null,
"total_time": null,
"resolved_at": null,
"resolved_agent_id": null,
"ticket_status": "open",
"created_at": "2026-11-12T08:40:00.000Z",
"updated_at": "2026-11-12T08:55:00.000Z"
}

Request​

Responses​

The ticket, with its new custom attributes.