Skip to main content
POST
/
tasks
/
{id}
/
comments
curl -X POST http://localhost:3000/api/v1/tasks/clxyz789/comments \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"text": "Looking good, merging soon."}'
{
  "id": "clcom001",
  "text": "Looking good, merging soon.",
  "authorId": "clxyz123",
  "taskId": "clxyz789",
  "createdAt": "2026-03-18T01:10:00.000Z"
}

Path Parameters

id
string
required
Task ID.

Body

text
string
required
Comment text.
curl -X POST http://localhost:3000/api/v1/tasks/clxyz789/comments \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"text": "Looking good, merging soon."}'
{
  "id": "clcom001",
  "text": "Looking good, merging soon.",
  "authorId": "clxyz123",
  "taskId": "clxyz789",
  "createdAt": "2026-03-18T01:10:00.000Z"
}