Jobs
List background jobs, newest first, without their payload
Section titled “List background jobs, newest first, without their payload”GET /api/v1/instance/jobs
- Operation
instance.jobs.list- Accepts
sessionCookie,sessionToken,accessToken- Scope
governance:read- Rights
audit.view- Effect
- reading
- Rate class
- read
Parameters
limitinteger in query, optional, default50, minimum1, maximum200cursorstring in query, optional, minLength1kindstring in query, optional, minLength1statusJobStatusList in query, optional
Answers
200One page of the listapplication/json: objectitemsarray of Job requirednextCursorstring optional
400BAD_REQUEST: The request cannot be read.401UNAUTHENTICATED: No credential was presented, or the credential is not valid.403FORBIDDEN: The caller lacks the scope or the right this operation requires.422VALIDATION_FAILED: Path, query or body do not match the operation's schema.429RATE_LIMITED: The caller sent too many requests of this operation's rate class.details.retryAfterSecondsand theRetry-Afterheader give the seconds to wait. The numbers are the instance's, set underrateLimitsin its release config.500INTERNAL: The instance failed. The message never carries details.
Count the queued, running, failed and dead background jobs of each kind
Section titled “Count the queued, running, failed and dead background jobs of each kind”GET /api/v1/instance/jobs/summary
- Operation
instance.jobs.summary- Accepts
sessionCookie,sessionToken,accessToken- Scope
governance:read- Rights
audit.view- Effect
- reading
- Rate class
- read
Answers
200The resultapplication/json: objectitemsarray of JobKindSummary required
400BAD_REQUEST: The request cannot be read.401UNAUTHENTICATED: No credential was presented, or the credential is not valid.403FORBIDDEN: The caller lacks the scope or the right this operation requires.422VALIDATION_FAILED: Path, query or body do not match the operation's schema.429RATE_LIMITED: The caller sent too many requests of this operation's rate class.details.retryAfterSecondsand theRetry-Afterheader give the seconds to wait. The numbers are the instance's, set underrateLimitsin its release config.500INTERNAL: The instance failed. The message never carries details.
Queue a failed or dead background job again; superadmins only
Section titled “Queue a failed or dead background job again; superadmins only”POST /api/v1/instance/jobs/{jobId}/retry
- Operation
instance.jobs.retry- Accepts
sessionCookie,sessionToken- Scope
governance:write- Effect
- changing
- Rate class
- write
Parameters
jobIdstring in path, requiredIdempotency-Keystring in header, optional, minLength1, maxLength255
Answers
200The result SetsOperation-Run-Id,Idempotent-Replayed.application/json: Job202The call waits for somebody else to approve it. This is its Operation Run; read it again atLocation. SetsOperation-Run-Id,Location,Idempotent-Replayed.application/json: OperationRun400BAD_REQUEST: The request cannot be read.401UNAUTHENTICATED: No credential was presented, or the credential is not valid.403FORBIDDEN: The caller lacks the scope or the right this operation requires.POLICY_DENIED: The instance's policy does not allow this operation from here.details.operationnames it.GUARDRAIL_BLOCKED: A guardrail refused the call.details.guardrailIdnames it.DECLINED: The person asked to approve the call declined it.details.bynames them,details.commentholds their reason where they gave one.404NOT_FOUND: The resource does not exist, is not visible to the caller, or the instance runs without this operation.409CONFLICT: The request conflicts with the current state of the resource.IDEMPOTENCY_KEY_REUSED: TheIdempotency-Keywas already used for another operation or another input. Send a new key.OPERATION_IN_PROGRESS: The first call with thisIdempotency-Keyhas not ended, or it was interrupted and its outcome is not known (details.interruptedistrue).details.operationRunIdnames its run. An interrupted call is never run again under its key: check what it changed, then send a new key.OPERATION_EXPIRED: The call waited for an approval until it expired, and nothing was executed. Call again with a new key.OUTPUT_NOT_RETAINED: The call with thisIdempotency-Keycompleted, and its answer was too large to keep. Read the result from what the call changed.422VALIDATION_FAILED: Path, query or body do not match the operation's schema.429RATE_LIMITED: The caller sent too many requests of this operation's rate class.details.retryAfterSecondsand theRetry-Afterheader give the seconds to wait. The numbers are the instance's, set underrateLimitsin its release config.500INTERNAL: The instance failed. The message never carries details.