Redeploy a Deployment

POST /groups/{groupId}/apps/{appId}/deployments/{deploymentId}/redeploy

Redeploy a previously-deployed version of an App.

Path parameters

Responses

  • 204

    Successfully redeployed

  • 404 application/json

    Deployment not found

    Hide response attributes Show response attributes object
    • error string

      A message that describes the error.

      Value is deployment not found.

    • error_code string

      The error type.

      Value is DeploymentNotFound.

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"
}