Add a comment to a task.
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"
}
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"
}
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"
}