Project Templates API: Update milestone and ordering
Endpoint#
Section titled “Endpoint#”| Property | Value |
|---|---|
| Type | mutation |
| Method | POST |
| Path | /api/external/v1/project_templates/update_milestone_and_ordering |
| Handler | OperatelyWeb.Api.ProjectTemplates.UpdateMilestoneAndOrdering |
Authentication#
Section titled “Authentication#”- Requires a valid API token.
- Requires a write-enabled token.
- Read-only tokens return
403.
| Field | Type | Required | Nullable | Default |
|---|---|---|---|---|
template_id | id primitive (encoded as string) | Yes | No | - |
task_id | id primitive (encoded as string) | Yes | No | - |
milestone_id | id primitive (encoded as string) | Yes | Yes | - |
index | integer | Yes | No | - |
Outputs#
Section titled “Outputs#”| Field | Type | Required | Nullable |
|---|---|---|---|
task | project_template_task object | Yes | No |
cURL Example#
Section titled “cURL Example#”Copied
curl --request POST \
--url "https://app.operately.com/api/external/v1/project_templates/update_milestone_and_ordering" \
--header "Authorization: Bearer ${OPERATELY_API_TOKEN}" \
--header "Content-Type: application/json" \
--data '{"index":123, "milestone_id":"value", "task_id":"value", "template_id":"value"}'Response Example#
Section titled “Response Example#”{ "task": { "__typename": "value", "description": "value", "due_offset_days": 123, "id": "value", "inserted_at": "2026-01-01T09:30:00Z", "name": "value", "priority": "value", "project_template_id": "value", "project_template_milestone_id": "value", "reminders": [ "<task_reminder>" ], "size": "value", "task_status": "<task_status>", "updated_at": "2026-01-01T09:30:00Z" }}