POST /tickets/{id}/comments
Add a new comment to a ticket thread.
Request Examples
curl -X POST "https://www.tickethub.dev.br/api/v1/tickets/1/comments" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{ "body": "This issue has been resolved in v1.2" }'
Sample Response
{
"id": 9,
"body": "This issue has been resolved in v1.2",
"ticket_id": 1,
"author_id": 3,
"author_type": "App\\Models\\TeamRobot",
"created_at": "2026-01-29T12:50:00.000Z",
"updated_at": "2026-01-29T12:50:00.000Z"
}