Run bulk work-item operation
Applies one bounded labels, assignment, or estimate command to up to 50 validated work items with per-item idempotency and per-item results.
POST
/api/v1/work-items/operations/bulkAuthorization
work-items:bulkapi key scoperequiredRequired scope when calling with an API key.
Request body
work_item_idsarrayrequired1–50 work-item IDs
commandstringrequired"labels" | "assignment" | "estimate"Bulk command
payloadobjectrequiredCommand payload
confirmbooleanrequiredMust be true
Example request
{
"work_item_ids": [
"work_01k2...",
"work_01k3..."
],
"command": "labels",
"payload": {
"add": [
"api"
]
},
"confirm": true
}Request
curl -X POST "https://www.digitalstack360.com/api/v1/work-items/operations/bulk" \
-H "Authorization: Bearer $DS_API_KEY" \
-H "Idempotency-Key: bulk-work-labels-20260715" \
-H "Content-Type: application/json" \
-d '{"work_item_ids":["work_01k2...","work_01k3..."],"command":"labels","payload":{"add":["api"]},"confirm":true}'Examples use a placeholder key from your environment. Store your key in $DS_API_KEY — never commit it.
Response
200 OK
{
"data": {
"count": 2,
"results": [
{
"work_item": {
"id": "work_01k2...",
"labels": [
"api"
]
},
"changed_fields": [
"labels"
]
}
]
}
}Errors
401
missing_authNo credentials provided
401
invalid_api_keyAPI key is invalid or revoked
400
bad_requestMissing or invalid request fields
403
scope_insufficientKey lacks the required write scope
403
scope_insufficientKey lacks work-items:bulk scope
400
bulk_limit_exceededBulk operations require 1 to 50 work_item_ids
400
bulk_command_requiredcommand is required