POST
/v1/services/{serviceId}/promotePromote deployment⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
Promotes a deployment to be the active deployment behind the service's stable endpoint. The deployment must be running. Returns the service endpoint domain.
Parameters
serviceIdstringpathrequiredRequest 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"
}
}