POST
/v1/apps/{appId}/deploymentsCreate deployment⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
Deprecated: use POST /v1/services/{serviceId}/deployments instead.
Creates a new deployment under the specified app. Returns a pre-signed upload URL for the artifact unless skipCodeUpload is set (which forks the active promoted deployment's artifact). Environment variables are resolved automatically from the app's attached Branch (production-class templates for the production Branch; preview-class templates for preview Branches). Manage env vars via the /v1/environment-variables endpoints, not as part of the deploy payload.
Parameters
appIdstringpathrequiredRequest body
application/json
object
portMappingobjectShow child attributes
httpvalueShow child attributes
anyOf · 2 options
Option 1integer
Option 2nullnullable
skipCodeUploadboolean{
"portMapping": {
"http": 0
},
"skipCodeUpload": true
}Responses
object
dataobjectrequiredShow child attributes
foundryVersionIdstringrequiredidstringrequiredtypestringrequireduploadUrlnull | stringrequiredurlstring · urirequired{
"data": {
"foundryVersionId": "string",
"id": "string",
"type": "deployment",
"uploadUrl": "string",
"url": "https://example.com"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}