Browse documentation
Upload deployment source
Uploads the compressed source archive and queues the hosted build. Requires agents:write.
Send the archive SHA-256 in x-salambo-source-sha256 to verify upload integrity.
/agents/{agentId}/deployments/{deploymentId}/sourceAuthorization
AuthorizationBearer <token>Path parameters
agentIdstringrequired- format
"uuid"
deploymentIdstringrequired- format
"uuid"
Headers
x-salambo-source-sha256stringBodyrequired
- format
"binary"
Response
Updated deployment
idstringrequired- format
"uuid"
objectstringrequired- const
"agent_deployment"
agent_idstringrequired- format
"uuid"
version_numberinteger | nullrequiredsourceobjectShow nested schema
kindstringrequiredrepository_urlstring | nullrequiredrepository_full_namestring | nullrequiredbranchstring | nullrequiredcommit_shastring | nullrequiredcommit_urlstring | nullrequiredcommit_messagestring | nullrequireddeploy_messagestring | nullrequireddeployed_by_user_idstring | null- format
"uuid"
source_archiveobject | nullAdditional properties are allowed.
manifestobject | nullAdditional properties are allowed.
imageobject | nullAdditional properties are allowed.
sandbox_imageobjectShow nested schema
modestringrequired- enum
["managed","custom"]
base_imageobject | nullrequiredAdditional properties are allowed.
sandbox_regionstring | null- enum
["us","eu",null]
runtime_configobjectrequiredAdditional properties are not allowed.
Show nested schema
versionintegerrequired- const
1
sandboxobjectrequiredAdditional properties are not allowed.
Show nested schema
regionstringrequired- enum
["us","eu"]
egressobjectrequiredAdditional properties are not allowed.
Show nested schema
modestringrequired- enum
["restricted","full-open"]
allowlistarrayrequired- maxItems
100
Show nested schema
credentialExchangesobject- maxProperties
10
Show nested schema
Additional properties are not allowed.
requestobjectrequiredAdditional properties are not allowed.
Show nested schema
hoststringrequiredmethodstringrequired- const
"POST"
pathstringrequired- maxLength
2048
contentTypestringrequired- const
"application/x-www-form-urlencoded"
requiredFieldsobjectrequired- minProperties
1- maxProperties
8
Show nested schema
- maxLength
256
secretFieldsobjectrequired- minProperties
1- maxProperties
4
Show nested schema
- pattern
"^[A-Z][A-Z0-9_]{0,127}$"
responseobjectrequiredAdditional properties are not allowed.
Show nested schema
contentTypestringrequired- const
"application/json"
credentialFieldstringrequiredtokenTypeFieldstringrequiredexpectedTokenTypestringrequired- const
"Bearer"
expiresInFieldstringrequiredaccessobjectrequiredAdditional properties are not allowed.
Show nested schema
allowedHostsarrayrequired- minItems
1- maxItems
25- uniqueItems
true
Show nested schema
workspaceobjectrequiredAdditional properties are not allowed.
Show nested schema
upgradePolicystringrequired- enum
["automatic","new-run-only"]
telemetryobjectrequiredAdditional properties are not allowed.
Show nested schema
endpointstring | nullrequired- format
"uri"
includeContentbooleanrequiredstatusstringrequired- enum
["queued","uploading_source","source_uploaded","building_image","pushing_image","preparing_runtime","ready","failed","cancelled"]
failed_stagestring | nullbrain_summaryobjectAdditional properties are allowed.
sandbox_summaryobjectAdditional properties are allowed.
errorobject | nullShow nested schema
codestringmessagestringmetadataobjectAdditional properties are allowed.
created_atintegerrequiredupdated_atintegerrequiredfinished_atinteger | null