Update metadata of a ticket
Tickets
Update metadata of a ticket
Updates metadata of the active ticket, or the latest closed ticket if allow_closed_ticket is true. For email contacts always provide ticket_id: their tickets are per-thread, so resolution by ai_contact_id or contact_number may return no ticket or one from a different thread.
POST
Update metadata of a ticket
Overview
Updates metadata fields for a ticket. Metadata is a set of key-value string pairs that you can attach to a ticket for custom tracking (e.g. order IDs, priorities, tags). By default, this endpoint targets the contactβs active ticket. Setallow_closed_ticket to true to fall back to the latest closed ticket when no active ticket exists.
Authentication
Include your API key in the request headers:Request Body
You must provide exactly one identifier:ticket_id,ai_contact_id, orcontact_number.
