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

Edit a comment

Author or organization Owner/Admin only. Omitting assetIds leaves the attachments; sending [] detaches all.

PATCH/api/tasks/{taskId}/comments/{commentId}
Authorization
AuthorizationBearer token (JWT) · headerrequired
Path parameters
taskIdstringrequired
commentIdstringrequired
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
403Only the comment author or an organization manager can edit
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PATCH "http://localhost:8000/api/tasks/string/comments/string" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "body": "string",
  "assetIds": [
    "string"
  ]
}'
Response
Only the comment author or an organization manager can edit