Assign or unassign work item

Assigns, reassigns, or unassigns the canonical work item. Jira-backed work items pass the assignment through to Jira using the configured identity mapping/account id.

POST/api/v1/work-items/:id/assignment

Authorization

work-items:assignapi key scoperequired
Required scope when calling with an API key.

Path parameters

idstringrequired
Canonical work-item ID

Example: work_01k2...

Request body

assignee_user_idstringoptional
DigitalStack user ID, or null to unassign
expected_versionnumberoptional
Optimistic work-item version guard
confirmbooleanrequired
Must be true
Example request
{
  "assignee_user_id": "user_jordan",
  "expected_version": 9,
  "confirm": true
}

Request

curl -X POST "https://www.digitalstack360.com/api/v1/work-items/work_01k2.../assignment" \
  -H "Authorization: Bearer $DS_API_KEY" \
  -H "Idempotency-Key: work-42-assign-jordan-v1" \
  -H "Content-Type: application/json" \
  -d '{"assignee_user_id":"user_jordan","expected_version":9,"confirm":true}'

Examples use a placeholder key from your environment. Store your key in $DS_API_KEY — never commit it.

Response

200 OK
{
  "data": {
    "work_item": {
      "id": "work_01k2...",
      "assignee_user_id": "user_jordan",
      "version": 10
    },
    "changed_fields": [
      "assignee_user_id"
    ]
  }
}

Errors

401
missing_auth

No credentials provided

401
invalid_api_key

API key is invalid or revoked

400
bad_request

Missing or invalid request fields

403
scope_insufficient

Key lacks the required write scope

403
scope_insufficient

Key lacks work-items:assign scope

400
assignee_not_eligible

Assignee is not eligible for the work item team