Release work-item claim
Gives up a claim the caller holds, returning the work item to the claimable pool immediately rather than at lease expiry. Releasing a claim you do not hold is reported rather than silently ignored, because an agent that believes it released will not retry.
DELETE
/api/v1/work-items/:id/claimAuthorization
work-items:assignapi key scoperequiredRequired scope when calling with an API key.
Path parameters
idstringrequiredCanonical work-item ID
Example: work_01k2...
Request body
claim_ownerstringrequiredThe same agent or session identifier that holds the lease
Example request
{
"claim_owner": "agent-7f3c"
}Request
curl -X DELETE "https://www.digitalstack360.com/api/v1/work-items/work_01k2.../claim" \
-H "Authorization: Bearer $DS_API_KEY"Examples use a placeholder key from your environment. Store your key in $DS_API_KEY — never commit it.
Response
200 OK
{
"data": {
"released": true,
"id": "work_01k2..."
}
}Errors
401
missing_authNo credentials provided
401
invalid_api_keyAPI key is invalid or revoked
403
scope_insufficientKey lacks work-items:assign scope
400
invalid_requestclaim_owner is missing or exceeds 200 characters
404
not_foundWork item does not exist or is outside the key account
409
claim_not_heldYou do not hold a claim on this work item