---
title: "Enable/Disable Hosting"
method: PATCH
path: "/groups/{groupId}/apps/{appId}/hosting/config"
tags: ["hosting"]
---

# Enable/Disable Hosting

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

Enable or disable App Services Hosting for your app.
Changes to hosting can take up to 15 minutes to take effect.
This endpoint does not notify you when the changes have taken effect,
only that the change operation was successfully received by the server.

You can see if the hosting enablement/disablement is complete
by calling the [Get Hosting Configuration](#operation/adminGetHostingConfig) endpoint.

## Request body

- object
  - `enabled` boolean — Set to `true` to enable App Services Hosting. Set to `false` to disable App Services Hosting.

## Response `204`

Successfully enabled/disabled App Services Hosting.

---

[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)
