Deploy a deployment draft
Deploy the specified application deployment draft.
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 unique
_id
value of a draft.
POST
/groups/{groupId}/apps/{appId}/drafts/{draftId}/deployment
curl \
--request POST 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/drafts/{draftId}/deployment' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"name":"string"}'
Request examples
{
"name": "string"
}
Response examples (201)
{
"_id": "string",
"name": "string",
"app_id": "string",
"draft_id": "string",
"user_id": "string",
"deployed_at": 42,
"origin": "string",
"commit": "string",
"status": "string",
"status_error_message": "string",
"diff_url": "string",
"remote_location": "US-VA"
}