Skip to content
Pile
Esc
↑↓navigate↵open⌘Jpreview

Create issue claim

Atomically claim this issue. Succeeds when the issue is unclaimed, its lease expired, or the caller already holds it (renew extends the lease and bumps the epoch). A live claim held by another actor answers 409 with the holder and expiry — do not steal.

POST/workspaces/{organizationId}/issues/{id}/claim
Path parameters
organizationIdstringrequired
idstringrequired
Request body
application/json
actorIdstring
agentIdstring
leaseSecondsinteger
Responses
200

Issue claimed (or lease renewed)

issueIdstringrequired
claimedBystringrequired
leaseExpiresAtstringrequired
epochnumberrequired
404

Issue not found

409

Issue already claimed — details carry claimedBy and leaseExpiresAt

Try it
Server
Parameters
Bodyapplication/json
Request
curl -X POST '/workspaces/string/issues/string/claim' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "actorId": "string",
  "agentId": "string",
  "leaseSeconds": 0
}'
Response
{
  "issueId": "string",
  "claimedBy": "string",
  "leaseExpiresAt": "string",
  "epoch": 0
}

Was this page helpful?