RequirementSetCategory

string

How a requirement set is filed.

Allowed values:producer_onboardingproducer_maintenanceproducer_offboardingpartner_onboardingpartner_maintenancepartner_offboardinghierarchy_maintenance

Example

TaskDefinitionId

string

A task definition’s ID, a TypeID with the prefix taskdefinition.

Match pattern:^taskdefinition_[0-7][0-9a-hjkmnp-tv-z]{25}$

Example

Error

object

The canonical error envelope. Every error the API writes carries a machine-readable code as the first details entry, the one whose param is “code”; branch on that, not on the message. There are two exceptions, both 500s the service could not build a normal error for: the platform’s panic recovery writes an empty body, and a failure to encode a response writes {“message”: “internal server error”} with no details. Treat a 500 without a code as internal_error. A 429 from the API gateway, in front of the API, carries a message only; treat any 429 as a signal to slow down.

messagestringrequired

Human-readable summary of why the request failed.

Example:invalid page_size

detailsarray[object]

One entry of an error’s details: the error code, or a request parameter and what is wrong with it.

Example:{"param":"code","message":"parameter_invalid"}

Show Child Parameters
Example

ErrorDetail

object

One entry of an error’s details: the error code, or a request parameter and what is wrong with it.

paramstringrequired

The parameter the entry is about, or “code” for the error code.

Example:code

messagestringrequired

For param “code”, the error code; otherwise what is wrong with the parameter.

Example:parameter_invalid

Example

ErrorCode

string

Every error code that applies across the API, as the message of the details entry whose param is “code”. A code is never renamed or repurposed. parameter_invalid is a 400, a parameter is missing, malformed or out of range. token_invalid is a 401, the token is missing, malformed, expired or wrongly signed. caller_not_service_account is a 403, the token identifies a person. caller_claims_missing is a 403, the token lacks a usable organization or service account claim. scope_missing is a 403, the token lacks the scope the operation requires. role_missing is a 403, the service account no longer holds a role at its organization that may call the operation (its grant was revoked or it was disabled). route_not_found is a 404, no operation serves the path; operations that look a record up declare their own _not_found codes. contract_not_found, contract_assignment_not_found, producer_not_found, task_not_found and requirement_set_not_found are each a 404 for a record that does not exist or that the caller’s organization may not see; the two are answered alike. file_not_found is a 404, the task has no file you may download at the slot. file_scan_pending is a 409, the file’s malware scan has not finished; try again after Retry-After seconds. file_unavailable is a 409, the file cannot be downloaded because its malware scan did not find it clean. assignments_over_cap is a 422, the producer holds more contract assignments that are not terminated than the detail serves; page through the contract assignments list instead, skipping those whose status is terminated. producer_roster_too_large is a 422, the producer holds no contract assignment that is not terminated under your organization’s contracts and its producer roster is longer than the API searches. method_not_allowed is a 405, the path exists but not for this method. rate_limit_exceeded is a 429, requests are arriving too fast; a 429 from the API gateway may arrive without it. internal_error is a 500, the service failed in a way the caller cannot fix. service_unavailable is a 503, a platform service this API depends on could not answer. upstream_auth_unavailable is a 503, the API could not get its own credentials for a platform service, so it did not call it.

Allowed values:parameter_invalidtoken_invalidcaller_not_service_accountcaller_claims_missingscope_missingrole_missingroute_not_foundcontract_not_foundcontract_assignment_not_foundproducer_not_foundassignments_over_capproducer_roster_too_largetask_not_foundfile_not_foundfile_scan_pendingfile_unavailablerequirement_set_not_foundmethod_not_allowedrate_limit_exceededinternal_errorservice_unavailableupstream_auth_unavailable

Example