Assign milestone scope
Manually assigns one source work item into a delivery milestone’s governed scope. The scope row points at the source item; it never owns, moves, or mutates it. The audit trail records the acting user, so this command requires a signed-in session or a delegated OAuth token — a bare API key is rejected.
/api/v1/delivery/milestones/:id/scopeAuthorization
delivery-timeline:writeapi key scoperequiredPath parameters
idstringrequiredExample: dm_01k2...
Request body
item_typestringrequired"epic" | "parent_task" | "story" | "task" | "deliverable" | "risk" | "document"source_item_idstringrequiredsource_systemstringoptionalsource_item_keystringoptionalsource_item_titlestringoptionalsource_item_urlstringoptionalnotesstringoptional{
"item_type": "story",
"source_item_id": "work_01k2...",
"source_system": "ds-native",
"source_item_key": "DS-42",
"source_item_title": "Checkout redesign",
"notes": "Committed for beta."
}Request
curl -X POST "https://www.digitalstack360.com/api/v1/delivery/milestones/dm_01k2.../scope" \
-H "Authorization: Bearer $DS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"item_type":"story","source_item_id":"work_01k2...","source_system":"ds-native","source_item_key":"DS-42","source_item_title":"Checkout redesign","notes":"Committed for beta."}'Examples use a placeholder key from your environment. Store your key in $DS_API_KEY — never commit it.
Response
{
"data": {
"id": "dms_01k2...",
"deliveryMilestoneId": "dm_01k2...",
"projectId": "proj_abc123",
"itemType": "story",
"sourceSystem": "ds-native",
"sourceItemId": "work_01k2...",
"sourceItemKey": "DS-42",
"sourceItemTitle": "Checkout redesign",
"sourceItemUrl": null,
"notes": "Committed for beta.",
"addedByUserId": "user_01k2...",
"createdAt": "2026-07-15T14:22:04Z",
"updatedAt": "2026-07-15T14:22:04Z"
}
}Errors
missing_authNo credentials provided
invalid_api_keyAPI key is invalid or revoked
scope_insufficientKey lacks delivery-timeline:write scope
invalid_requestitem_type and source_item_id are required
invalid_scope_itemScope item fields fail validation
not_foundDelivery milestone does not exist in the resolved workspace
actor_context_requiredCaller is an API key with no acting user; use a session or delegated OAuth token