Atualizar ticket de suporte

PUT /updateTicket/{id}

Atualiza o status e a resposta de um ticket de suporte existente.

Path parameters

  • id integer Required

    ID do ticket a ser atualizado

application/json

Body

  • response string

    Resposta do suporte

  • status string

    Status do ticket

    Values are open or closed.

Responses

  • 200 application/json

    Ticket atualizado com sucesso

    Hide response attributes Show response attributes object
  • 400 application/json

    Dados inválidos fornecidos

    Hide response attribute Show response attribute object
  • 404 application/json

    Ticket não encontrado

    Hide response attribute Show response attribute object
PUT /updateTicket/{id}
curl \
 --request PUT 'http://localhost:8000/updateTicket/{id}' \
 --header "Content-Type: application/json" \
 --data '{"response":"string","status":"open"}'
Request examples
{
  "response": "string",
  "status": "open"
}
Response examples (200)
{
  "id": 42,
  "subject": "string",
  "message": "string",
  "created_at": "2025-05-04T09:42:00Z",
  "status": "string",
  "response": "string"
}
Response examples (400)
{
  "message": "string"
}
Response examples (404)
{
  "message": "string"
}