Redeploy a Deployment
Redeploy a previously-deployed version of an App.
Path parameters
-
An Atlas Project/Group ID.
-
The ObjectID of your application. The App Services API Project and Application IDs section demonstrates how to find this value.
-
The
_id
value of an application deployment.
POST
/groups/{groupId}/apps/{appId}/deployments/{deploymentId}/redeploy
curl \
--request POST 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/deployments/{deploymentId}/redeploy' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (404)
{
"error": "deployment not found",
"error_code": "DeploymentNotFound"
}