POST /v1/environments/{environment_id}/revisions
POST
/v1/environments/{environment_id}/revisionsAuthorization
AuthorizationBearer token · headerrequiredPath parameters
environment_idTextrequiredmin length 1 · matches ^[^\x00]+$
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/jsonsourceEnvironmentSourcerequiredShow propertiesHide properties
One of:
object
imageImageDigestrequiredmatches ^[^\s@]+@sha256:[0-9a-f]{64}$
typestringrequiredAllowed:
imageobject
contextDigestrequiredmatches ^sha256:[0-9a-f]{64}$
dockerfileDigestrequiredmatches ^sha256:[0-9a-f]{64}$
typestringrequiredAllowed:
dockerfileobject
contextDigestrequiredmatches ^sha256:[0-9a-f]{64}$
definitionDigestrequiredmatches ^sha256:[0-9a-f]{64}$
typestringrequiredAllowed:
devcontainerResponses
201
Success
build_tool_versionTextrequiredmin length 1 · matches ^[^\x00]+$
created_atTimestamprequiredmatches Z$
environment_idEnvironmentIdrequiredmatches ^env_[0-9A-HJKMNP-TV-Z]{26}$
idRevisionIdrequiredmatches ^rev_[0-9A-HJKMNP-TV-Z]{26}$
imagesPlatformImage[]requiredShow propertiesHide properties
Array of
PlatformImageimageImageDigestrequiredmatches ^[^\s@]+@sha256:[0-9a-f]{64}$
index_digestDigest | nullrequiredShow propertiesHide properties
One of:
Digest
stringnull
nullmanifest_digestDigestrequiredmatches ^sha256:[0-9a-f]{64}$
platformPlatformrequiredmatches ^[a-z0-9][a-z0-9_.-]*/[a-z0-9][a-z0-9_.-]*(/[a-z0-9][a-z0-9_.-]*)?$
importer_versionTextrequiredmin length 1 · matches ^[^\x00]+$
resolved_featuresResolvedFeature[]requiredShow propertiesHide properties
Array of
ResolvedFeaturedigestDigestrequiredmatches ^sha256:[0-9a-f]{64}$
referenceTextrequiredmin length 1 · matches ^[^\x00]+$
runtimeRuntimeMetadata | nullrequiredShow propertiesHide properties
One of:
RuntimeMetadata
commandsLifecycleCommand[]requiredShow propertiesHide properties
Array of
LifecycleCommandcommandCommandrequiredShow propertiesHide properties
argvstring[]requiredmin items 1
cwdAbsolutePathmatches ^/[^\x00]*$
envobjectphaseLifecyclePhaserequiredAllowed:
on_createpost_createpost_startpost_attachenvobjectrequiredposix_userlandbooleanrequireduserText | nullrequiredShow propertiesHide properties
One of:
Text
stringnull
nullnull
nullsourceEnvironmentSourcerequiredShow propertiesHide properties
One of:
object
imageImageDigestrequiredmatches ^[^\s@]+@sha256:[0-9a-f]{64}$
typestringrequiredAllowed:
imageobject
contextDigestrequiredmatches ^sha256:[0-9a-f]{64}$
dockerfileDigestrequiredmatches ^sha256:[0-9a-f]{64}$
typestringrequiredAllowed:
dockerfileobject
contextDigestrequiredmatches ^sha256:[0-9a-f]{64}$
definitionDigestrequiredmatches ^sha256:[0-9a-f]{64}$
typestringrequiredAllowed:
devcontainersource_digestDigestrequiredmatches ^sha256:[0-9a-f]{64}$
subset_reportSubsetEntry[]requiredShow propertiesHide properties
Array of
SubsetEntrydispositionSubsetDispositionrequiredAllowed:
acceptedmappeddeferredrejectedkeyTextrequiredmin length 1 · matches ^[^\x00]+$
reasonstringrequired400
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