Skip to main content
Authentication required. You must include a valid Bearer token. Only users with the ADMIN or MESA role can call this endpoint.

Endpoint

POST /api/tickets/{ticket_id}/reclasificar
Updates the priority and category of a ticket. Both fields are updated together in a single operation via sp_reclasificar_ticket. The reclassification reason is logged in the ticket history.

Path parameters

ticket_id
string
required
The UUID of the ticket to reclassify.

Request body

nuevaPrioridad
string
required
The new priority level to assign to the ticket (e.g., "ALTA", "MEDIA", "BAJA").
nuevaCategoria
string
required
The new category to assign to the ticket.
motivo
string
required
The reason for reclassifying the ticket. This text is stored in the ticket history.

Response

message
string
Confirmation string. Returns "Reclasificado" on success.

Error codes

StatusDescription
401No token provided or token is invalid.
403Your role is not ADMIN or MESA.
404No ticket found with the given ticket_id.

Example

curl --request POST \
  --url https://your-domain.com/api/tickets/{ticket_id}/reclasificar \
  --header 'Authorization: Bearer {token}' \
  --header 'Content-Type: application/json' \
  --data '{
    "nuevaPrioridad": "ALTA",
    "nuevaCategoria": "Seguridad",
    "motivo": "Security incident escalated after initial review"
  }'
{
  "message": "Reclasificado"
}

Build docs developers (and LLMs) love