Tickets API · Tickets
Move a ticket to a state
POST/
Into a resolved state, the conversations the person sees are resolved too (unless
resolve_conversations is false); meta.left_open counts those outside their view. The
type's required fields must be filled first. The customer is told, in the account's
wording for state changes.
Authorization
api_access_tokenheaderrequiredA person's access token (Texa Desk, Profile settings → Access token) or an agent bot's token, in the api_access_token header. It acts as that person, with their role's permissions.
Path parameters
account_idintegerrequiredThe account's id
numberintegerrequiredThe ticket's number, as in its reference AUD-1001
Body application/json
ticket_state_idintegerrequiredresolve_conversationsbooleanDefault true.
keep_openarray of integerDisplay ids to keep open
Responses
200The ticket
payloadobjectpayload.idintegerpayload.numberintegerpayload.referencestringpayload.titlestringpayload.kindstringOne of: ticket, tracker.
payload.typeobjectpayload.type.idintegerpayload.type.namestringpayload.type.iconstringpayload.type.complaintbooleanA complaint
payload.type.sensitivebooleanShown to the customer only once they are verified
payload.type.audiencestringOne of: customer, internal.
payload.stateobjectpayload.state.idintegerpayload.state.namestringThe state as your team sees it
payload.state.customer_namestringThe state as the customer sees it
payload.state.categorystringOne of: submitted, in_progress, waiting_on_customer, resolved.
payload.state.systembooleanOne of the four states every account has
payload.state.positionintegerpayload.state.archivedbooleanpayload.assignee_idintegerpayload.team_idintegerpayload.prioritystringOne of: low, medium, high, urgent.
payload.branch_idintegerpayload.created_viastringOne of: person, texa_ai, rule, inbox, customer, api.
payload.main_conversation_idintegerThe display id of its main conversation
payload.due_atintegerUnix seconds: when the type's promise is due. Null when the type promises nothing. Overdue means due_at has passed and the category is not resolved
payload.acknowledged_atintegerpayload.resolved_atintegerpayload.customer_wrote_after_resolution_atintegerpayload.created_atintegerpayload.updated_atnumberpayload.reopened_countintegerpayload.conversations_countintegerpayload.open_conversations_countintegerpayload.descriptionstringpayload.custom_attributesobjectThe type's fields, by conversation custom attribute key
payload.contactobjectThe customer
payload.assigneeobjectpayload.teamobjectpayload.created_byobject{type, id, name}; Texa AI is {type: texa_ai, name: Texa AI}
payload.statesarray of objectThe states its type allows
payload.states[].idintegerpayload.states[].namestringThe state as your team sees it
payload.states[].customer_namestringThe state as the customer sees it
payload.states[].categorystringOne of: submitted, in_progress, waiting_on_customer, resolved.
payload.states[].systembooleanOne of the four states every account has
payload.states[].positionintegerpayload.states[].archivedbooleanpayload.conversationsarray of objectThe conversations the person sees
payload.conversations[].idintegerpayload.conversations[].inbox_idintegerpayload.conversations[].inbox_namestringpayload.conversations[].channelstringpayload.conversations[].statusstringpayload.conversations[].mainbooleanpayload.hidden_conversations_countintegerIts conversations outside the person's view
payload.linksarray of object[{number, reference, title, kind (related, parent, child), state}]
payload.trackerobjectpayload.merged_intoobjectpayload.tasksarray of objectpayload.clocksobject{extensions [{from, to, reason, at, by}], extensions_left, extension_until, referred_at}
422Refused, with a sentence to show as it is
errorstringA sentence in the person's language