Tasks
Add Comment
Add a comment to a task.
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
Task ID.
Body
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"
}
⌘I
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"
}