---
title: "Configure Deployment"
method: PATCH
path: "/groups/{groupId}/apps/{appId}/deploy/config"
tags: ["deploy"]
---

# Configure Deployment

`PATCH /groups/{groupId}/apps/{appId}/deploy/config`

Modify an App's deployment configuration to customize how the App deploys changes.

## Request body

- DeploymentConfig — A configuration file that controls your app's deployment behavior.
  - `ui_drafts_disabled` boolean, required — If `true`, every change made in the Admin UI deploys automatically on save. If `false`, changes are grouped into a deployment draft that you deploy separately.
  - `automatic_deployment` object, required — Configuration for automatic deployment methods
    - `enabled` boolean — If `true`, the app automatically deploys using the method defined for `provider`.
    - `provider` 'github' — The type of automatic deployment.
    - `installation_ids` string[] — The unique ID values of automatic deployment provider installations. For example, the `id` value of a [GitHub app installation](https://docs.github.com/en/rest/apps/installations).
  - `last_modified` number — The time this configuration was last modified represented by the number of seconds since the UNIX epoch.

## Response `204`

Success

---

[API](https://skmtc.net/mongodb/apis/mongodb-atlas-app-services-admin-api.md) · [All operations](https://skmtc.net/mongodb/apis/mongodb-atlas-app-services-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mongodb/mongodb-atlas-app-services-admin-api/revisions/1365ab72bc03/schema)
