Skip to content
NTOMA
Esc
↑↓navigate↵open⌘Jpreview

Post a comment on a task

POST/api/tasks/{taskId}/comments
Authorization
AuthorizationBearer token (JWT) · headerrequired
Path parameters
taskIdstringrequired
Header parameters
x-organization-idstring
Target organization id. Defaults to the caller's personal organization when omitted.
Request body
requiredapplication/json
bodystringrequired
min length 1 · max length 5000
assetIdsstring[]
Organization-owned asset ids. Replaces the attachment set.
Responses
403Comment assets must belong to the task organization
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST "http://localhost:8000/api/tasks/string/comments" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "body": "string",
  "assetIds": [
    "string"
  ]
}'
Response
Comment assets must belong to the task organization