Configure Deployment
Modify an App's deployment configuration to customize how the App deploys changes.
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.
Body
-
If
true
, every change made in the Admin UI deploys automatically on save. Iffalse
, changes are grouped into a deployment draft that you deploy separately. -
Configuration for automatic deployment methods
-
The time this configuration was last modified represented by the number of seconds since the UNIX epoch.
PATCH /groups/{groupId}/apps/{appId}/deploy/config
curl \ --request PATCH 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/deploy/config' \ --header "Authorization: Bearer $ACCESS_TOKEN" \ --header "Content-Type: application/json" \ --data '{"ui_drafts_disabled":true,"automatic_deployment":{"enabled":true,"provider":"github","installation_ids":["string"]},"last_modified":42.0}'
Request examples
{ "ui_drafts_disabled": true, "automatic_deployment": { "enabled": true, "provider": "github", "installation_ids": [ "string" ] }, "last_modified": 42.0 }