Skip to main content

Delete Ticket Custom Attributes

PUT 

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

Removes the given keys from the ticket's custom attributes.

The other keys of the ticket's custom_attributes are kept. To replace them all, use Set Ticket Custom Attributes. See List Tickets for what a ticket is.

SettingValue
MethodPUT
Path/api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/{ticket_id}/destroy_custom_attributes

Permissions:

Path parameters

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

Body parameters (JSON)

NameTypeRequiredDescription
custom_attributesstring[]YesKeys to remove.

Example request

curl -X PUT 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/tickets/903/destroy_custom_attributes' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "custom_attributes": ["refund_amount"] }'

Example response (200 OK): the ticket (same shape as Set Ticket Custom Attributes) with "custom_attributes": {"case_type": "refund", "order_id": "A-1001"}. In the response, conversation_id is the conversation's internal ID, not the display ID used in the path.

Request​

Responses​

The ticket, with its remaining custom attributes.