Ticket Hub

PATCH /tickets/{id}

Update a ticket's fields. Status and priority are strings.

Body Parameters

Field Rules Description
title string, max:255 Update the ticket title.
description string Update the ticket description.
priority string Recommended: low, medium, high, urgent.
status string Recommended: open, in_progress, waiting, closed.
assigned_id nullable, exists:users,id User ID to assign the ticket to. Must belong to the same team.

Request Examples

curl -X PATCH "https://www.tickethub.dev.br/api/v1/tickets/1" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{ "status": "in_progress", "assigned_id": 5 }'

Sample Response

{
  "id": 1,
  "title": "Fix Login Bug",
  "description": "Login fails for admin accounts.",
  "status": "in_progress",
  "priority": "high",
  "author_id": 3,
  "author_type": "App\\Models\\TeamRobot",
  "assigned_id": 5,
  "team_id": 2,
  "created_at": "2026-01-29T12:00:00.000Z",
  "updated_at": "2026-01-29T12:40:00.000Z"
}