Projects API: Update milestone ordering
Endpoint#
Section titled “Endpoint#”| Property | Value |
|---|---|
| Type | mutation |
| Method | POST |
| Path | /api/external/v1/projects/update_milestone_ordering |
| Handler | OperatelyWeb.Api.Projects.Milestones.UpdateOrdering |
Authentication#
Section titled “Authentication#”- Requires a valid API token.
- Requires a write-enabled token.
- Read-only tokens return
403.
| Field | Type | Required | Nullable | Default |
|---|---|---|---|---|
project_id | id primitive (encoded as string) | Yes | No | - |
ordering_state | array of string | Yes | No | - |
Outputs#
Section titled “Outputs#”| Field | Type | Required | Nullable |
|---|---|---|---|
project | project object | Yes | No |
cURL Example#
Section titled “cURL Example#”Copied
curl --request POST \
--url "https://app.operately.com/api/external/v1/projects/update_milestone_ordering" \
--header "Authorization: Bearer ${OPERATELY_API_TOKEN}" \
--header "Content-Type: application/json" \
--data '{"ordering_state":["value"], "project_id":"value"}'Response Example#
Section titled “Response Example#”{ "project": { "__typename": "value", "access_levels": "<access_levels>", "archived_at": "2026-01-01", "champion": "<person>", "closed_at": "2026-01-01", "contributors": [ "<project_contributor>" ], "description": "value", "goal": "<goal>", "goal_id": "value", "id": "value", "inserted_at": "2026-01-01", "is_archived": true, "is_outdated": true, "is_pinned": true, "last_check_in": "<project_check_in>", "milestones": [ "<milestone>" ], "milestones_ordering_state": [ "value" ], "my_role": "value", "name": "value", "next_check_in_scheduled_at": "2026-01-01", "next_milestone": "<milestone>", "next_update_scheduled_at": "2026-01-01", "notifications": [ "<notification>" ], "permissions": "<project_permissions>", "potential_subscribers": [ "<subscriber>" ], "privacy": "value", "resource_hub": "<resource_hub>", "retrospective": "<project_retrospective>", "reviewer": "<person>", "space": "<space>", "space_id": "value", "state": "active", "status": "value", "subscription_list": "<subscription_list>", "success_status": "achieved", "task_statuses": [ "<task_status>" ], "tasks_kanban_state": "value", "tasks_view": "list", "timeframe": "<timeframe>", "updated_at": "2026-01-01", "url": "value" }}