POST
/v1/apps/{appId}/promotePromote deployment⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
Deprecated: use POST /v1/services/{serviceId}/promote instead.
Promotes a deployment to be the active deployment behind the app's stable endpoint. The deployment must be running. Returns the app endpoint domain.
Parameters
appIdstringpathrequiredRequest body
application/json
object
deploymentIdstringversionIdstringDeprecated: use `deploymentId` instead. Ignored when `deploymentId` is also present.
{
"deploymentId": "string",
"versionId": "string"
}Responses
object
dataobjectrequiredShow child attributes
appEndpointDomainstringrequiredreassignedDomainsnumberrequired{
"data": {
"appEndpointDomain": "string",
"reassignedDomains": 0
}
}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"
}
}