Create a Deployment Draft
Create a new application deployment draft, if none exists.
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.
POST /groups/{groupId}/apps/{appId}/drafts
curl \ --request POST 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/drafts' \ --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (201)
{ "_id": "string", "user_id": "string", "app": { "name": "MyApp", "provider_region": "aws-us-east-1", "location": "US-VA", "deployment_model": "GLOBAL", "environment": "production", "_id": "633209ffd3bd3478005d1bac", "client_app_id": "myapp-abcde", "domain_id": "63320a2b5f9de9a6e0a213e8", "group_id": "5b2ec991973129243223a114", "last_used": 1664224746, "last_modified": 1656440824, "product": "standard" } }
Response examples (409)
{ "error": "string", "error_code": "string" }