/api/v1/tickets/{id}/takeover
const url = 'https://api.endless.zaia.app/api/v1/tickets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/takeover';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"assigneeId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.endless.zaia.app/api/v1/tickets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/takeover \ --header 'Content-Type: application/json' \ --data '{ "assigneeId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Takes over a ticket.
Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”A UUID v4 string that identifies an entity.
A UUID v4 string that identifies an entity.
Request Bodyrequired
Seção intitulada “Request Bodyrequired”object
A UUID v4 string that identifies an entity.
Examplegenerated
{ "assigneeId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Seção intitulada “Responses”The ticket was taken over.
object
A UUID v4 string that identifies an entity.
The id of the user assigned to the ticket.
A UUID v4 string that identifies an entity.
The type of ticket creation: takeover (human intervention) or handover (agent automatic creation).
The last time the ticket was viewed by the assignee.
A brief summary of the chat up until the ticket was created.
The id of the ticketing team responsible for the ticket.
Example
{ "circumstance": "takeover", "status": "pending"}Unauthorized.
The description of a known exception.
object
The error code.
The error call-to-action.
object
The error feedback.
object
The error message.
The error name.
Example
{ "cta": { "type": "support-contact" }}Ticket not found.
The description of a known exception.
object
The error code.
The error call-to-action.
object
The error feedback.
object
The error message.
The error name.
Example
{ "cta": { "type": "support-contact" }}Ticket is not ongoing or already assigned.
The description of a known exception.
object
The error code.
The error call-to-action.
object
The error feedback.
object
The error message.
The error name.
Example
{ "cta": { "type": "support-contact" }}