Skip to content
campaiDeveloper
campai.com

Misc · Todo · Items · Comments

POST/{organizationId}/misc/todo/items/{itemId}/comments

Create todo comment

Adds a comment to a todo

Permissions

Send an API key of the organization in the path, using the X-API-Key header.

Permission checks in detail
Required permissions
  • todoItem.edit, or being an assignee or the reviewer of the todo

Request

Path parameters

  • organizationIdidrequired
  • itemIdidrequired

Body

Content-Type: application/json

  • descriptionstringrequired

    1–10000 characters

  • closeItemboolean
  • expectedUpdatedAtstring · date-timerequirednullable
  • attachmentsobject[]

    at most 10 items · default []

    3 properties
    • fileNamestring

      at most 128 characters

    • resourcestringrequired
    • idstring

      exactly 6 characters

Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request POST 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/misc/todo/items/YOUR_ITEM_ID/comments' \
  --header 'X-API-Key: YOUR_API_KEY'

No request that worked has been recorded yet, so the body is not shown.

Response

200 Successful response

Content-Type: application/json

  • _idid
Response200
{
  "_id": "000000000000000000000001"
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.