POST
/tickets/{ticket_id}/tagsAdd a tag to a ticket
Attaches an existing tag to a ticket. Supply the tag's id and the admin_id of the admin applying it. The response contains the tag object returned for the tagging operation.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
ticket_idstringrequired
The unique identifier of the ticket to tag.
Intercom-Versionstringoptional
The API version to use. Defaults to 2.17 when omitted.
Identifies the tag to attach and the admin applying it.
idstringrequired
The unique identifier for the tag which is given by Intercom
admin_idstringrequired
The unique identifier for the admin which is given by Intercom.
200Returns the tag object that was added to the ticket, including its identifier, name, application time, and applying admin.
typestringoptional
value is "tag"
idstringoptional
The id of the tag
namestringoptional
The name of the tag
applied_atintegeroptional
The time when the tag was applied to the object. Only present when the tag is returned as part of a tagging operation on a contact, conversation, or ticket.
applied_byobjectoptional
The admin who applied the tag. Only present when the tag is returned as part of a tagging operation on a contact, conversation, or ticket.
401Returned when the request is unauthorized.
One documented failure
unauthorizedAccess Token Invalid
typestringrequired
The type is error.list
request_idstringoptional
errorsarray<object>required
An array of one or more error objects
404Returned when the ticket is not found.
One documented failure
ticket_not_foundTicket not found
typestringrequired
The type is error.list
request_idstringoptional
errorsarray<object>required
An array of one or more error objects
Error handling
A 401 is returned when the request is unauthorized, and a 404 when the ticket is not found. The ticket_id path parameter must identify the ticket to tag. The body must include id and admin_id.