POST /v1/revisions/{revision_id}/prepare
POST
/v1/revisions/{revision_id}/prepareAuthorization
AuthorizationBearer token · headerrequiredPath parameters
revision_idRevisionIdrequiredmatches ^rev_[0-9A-HJKMNP-TV-Z]{26}$
Header parameters
Idempotency-KeyIdempotencyKeyrequiredRequired opaque key. Same semantic request cannot perform the operation twice; negotiation headers are excluded from its fingerprint.
min length 1 · max length 255 · matches ^[!-~]+$
Request body
requiredapplication/jsonplatformsPlatform[]min items 1
resourcesResourceRequestrequiredShow propertiesHide properties
cpu_millicoresCpuRangeShow propertiesHide properties
maxinteger<int64>min 250 · max 9007199254740991
mininteger<int64>requiredmin 250 · max 9007199254740991
disk_bytesDiskRangeShow propertiesHide properties
maxinteger<int64>min 1 · max 9007199254740991
mininteger<int64>requiredmin 1 · max 9007199254740991
guaranteeGuaranteeAllowed:
best_effortdedicatedmemory_bytesMemoryRangeShow propertiesHide properties
maxinteger<int64>min 268435456 · max 9007199254740991
mininteger<int64>requiredmin 268435456 · max 9007199254740991
sizeSizeTierAllowed:
xsmallsmallmediumlargexlargexxlargetargetsText[]requiredmin items 1
Responses
202
Success
artifactsArtifactStatus[]requiredShow propertiesHide properties
Array of
ArtifactStatuserrorErrorBody | nullrequiredShow propertiesHide properties
One of:
ErrorBody
codeErrorCoderequiredAllowed:
unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequirednull
nullidArtifactIdrequiredmatches ^art_[0-9A-HJKMNP-TV-Z]{26}$
offeringTextrequiredmin length 1 · matches ^[^\x00]+$
phaseArtifactPhaserequiredAllowed:
pendingbuildingreadyfailedplatformPlatformrequiredmatches ^[a-z0-9][a-z0-9_.-]*/[a-z0-9][a-z0-9_.-]*(/[a-z0-9][a-z0-9_.-]*)?$
revisionRevisionIdrequiredmatches ^rev_[0-9A-HJKMNP-TV-Z]{26}$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
created_atTimestamprequiredmatches Z$
idPrepareIdrequiredmatches ^prep_[0-9A-HJKMNP-TV-Z]{26}$
revisionRevisionIdrequiredmatches ^rev_[0-9A-HJKMNP-TV-Z]{26}$
400
Typed error; Retry-After is present when retryable
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired401
Typed error; Retry-After is present when retryable
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired403
Typed error; Retry-After is present when retryable
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired404
Unknown resource
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired409
Idempotency request in progress, expired response, or conflicting state
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired413
Request exceeds policy body limit
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired415
Expected application/json
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired422
Typed error; Retry-After is present when retryable
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired429
Typed error; Retry-After is present when retryable
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired500
Typed error; Retry-After is present when retryable
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired503
Typed error; Retry-After is present when retryable
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired