Claim the orchestrator's round
const url = 'https://example.com/v1/system/deployments/round';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"claimant":"example","holdSeconds":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/system/deployments/round \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "claimant": "example", "holdSeconds": 1 }'One orchestrator pass at a time, whatever starts them (scheduled runs can overlap): a pass claims the round before it acts, for holdSeconds, and stops on a 409. A claim is never renewed, the claimant’s own included: the pass ends within its hold (round/end), or its claim lapses and the next pass takes the round over. Takes system:deployments.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Examplegenerated
{ "claimant": "example", "holdSeconds": 1}Responses
Section titled “Responses”Claimed, until heldUntil.
object
Examplegenerated
{ "claimant": "example", "heldUntil": "2026-04-15T12:00:00Z"}A malformed body, a claimant that isn’t 1 to 128 printable characters, or a holdSeconds that isn’t a whole number from 30 to 3600 (bad-input).
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Missing / malformed / expired / revoked bearer token.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}A tenant’s key or session (system-principal-required), or a system key without system:deployments (system-scope-missing).
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Another pass’s live claim holds the round (orchestrator-round-held): this pass stops. Or idempotency-key-in-flight (with Retry-After): a request with the same Idempotency-Key still runs, so this one wasn’t run; send it again after Retry-After to get that request’s answer.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”The request body is over the API’s limit (request-too-large; details.maxBytes says how much).
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Server error (unmapped domain code or framework crash).
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}This server keeps no orchestrator round (orchestrator-round-unsupported): whatever runs its pack services keeps one pass at a time itself.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}The operator’s access record can’t be written, so nothing was done (access-record-unavailable), or the Idempotency-Key store couldn’t be read before the request ran (idempotency-store-unavailable, with Retry-After). Or the authorization store couldn’t be reached (authz-backend-unavailable, with Retry-After), or the database was too busy for the authorization check (database-busy, with Retry-After), so the request wasn’t run.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”See also
GET /v1/system/deployments: List deployments that need a pack service, have a ready one, or should lose theirsPOST /v1/system/deployments/round/end: End the orchestrator's round- Kindgi 0.4.0
- Error code
access-record-unavailable - Error code
authz-backend-unavailable - Error code
bad-input - Error code
database-busy - Error code
idempotency-key-in-flight - Error code
idempotency-store-unavailable - Error code
orchestrator-round-held - Error code
orchestrator-round-unsupported - Error code
request-too-large - Error code
system-principal-required - Error code
system-scope-missing - Every error code