Authentication required. You must include a valid Bearer token. Users with the ADMIN or MESA role can archive any ticket. Users with the AREA role can only archive tickets that belong to their own area.
Endpoint
user_id, nombre, email, rol) is extracted automatically from your JWT token — you do not need to supply it in the request body. The operation is executed via sp_archivar_ticket.
Path parameters
The UUID of the ticket to archive.
Request body
The reason for archiving the ticket. This text is stored in the ticket history alongside the actor’s identity from the JWT token.
Response
Confirmation string. Returns
"Archivado" 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. |