Projects API: Create milestone comment
Endpoint#
Section titled “Endpoint#”| Property | Value |
|---|---|
| Type | mutation |
| Method | POST |
| Path | /api/external/v1/projects/create_milestone_comment |
| Handler | OperatelyWeb.Api.Projects.CreateMilestoneComment |
Authentication#
Section titled “Authentication#”- Requires a valid API token.
- Requires a write-enabled token.
- Read-only tokens return
403.
| Field | Type | Required | Nullable | Default |
|---|---|---|---|---|
milestone_id | id primitive (encoded as string) | Yes | No | - |
content | json primitive (encoded as string) | Yes | Yes | - |
action | string | Yes | No | - |
open_tasks_resolution | milestone_open_tasks_resolution_input object | No | Yes | - |
Outputs#
Section titled “Outputs#”| Field | Type | Required | Nullable |
|---|---|---|---|
comment | milestone_comment object | Yes | No |
cURL Example#
Section titled “cURL Example#”Copied
curl --request POST \
--url "https://app.operately.com/api/external/v1/projects/create_milestone_comment" \
--header "Authorization: Bearer ${OPERATELY_API_TOKEN}" \
--header "Content-Type: application/json" \
--data '{"action":"value", "content":"value", "milestone_id":"value", "open_tasks_resolution":{"action":"move_to_no_milestone", "status_id":"value"}}'Response Example#
Section titled “Response Example#”{ "comment": { "__typename": "value", "action": "none", "comment": "<comment>" }}