Authentication required. You must include a valid Bearer token. Users with the ADMIN or MESA role can cancel any ticket. Users with the AREA role can only cancel tickets that belong to their own area.
Endpoint
rol field records whether the cancellation was initiated by the end user or by an agent. The operation is executed via sp_cancelar_ticket.
Path parameters
The UUID of the ticket to cancel.
Request body
The reason for cancelling the ticket. This text is stored in the ticket history.
Identifies who is initiating the cancellation. Must be one of:
"USUARIO"— the end user is cancelling their own request."AGENTE"— an agent is closing the ticket on behalf of the system or team.
Response
Confirmation string. Returns
"Cancelado" on success.Error codes
| Status | Description |
|---|---|
401 | No token provided or token is invalid. |
403 | Your role is not ADMIN, MESA, or AREA; or your AREA role does not cover this ticket’s area. |
404 | No ticket found with the given ticket_id. |