Skip to content

Project Templates API: Create comment

Endpoint#

PropertyValue
Typemutation
MethodPOST
Path/api/external/v1/project_templates/create_comment
HandlerOperatelyWeb.Api.ProjectTemplates.CreateComment

Authentication#

  • Requires a valid API token.
  • Requires a write-enabled token.
  • Read-only tokens return 403.

Inputs#

FieldTypeRequiredNullableDefault
template_idid primitive (encoded as string)YesNo-
parent_typeproject_template_comment_parent_type enum (discussion, document, file, link)YesNo-
parent_idid primitive (encoded as string)YesNo-
contentjson primitive (encoded as string)YesNo-

Outputs#

FieldTypeRequiredNullable
commentproject_template_comment objectYesNo

cURL Example#

Copied
curl --request POST \
  --url "https://app.operately.com/api/external/v1/project_templates/create_comment" \
  --header "Authorization: Bearer ${OPERATELY_API_TOKEN}" \
  --header "Content-Type: application/json" \
  --data '{"content":"value", "parent_id":"value", "parent_type":"discussion", "template_id":"value"}'

Response Example#

{
  "comment": {
    "__typename": "value",
    "author": "<person>",
    "content": "value",
    "id": "value",
    "inserted_at": "2026-01-01T09:30:00Z",
    "parent_id": "value",
    "parent_type": "discussion",
    "position": 123,
    "updated_at": "2026-01-01T09:30:00Z"
  }
}