---
title: "Applies the configuration settings from the target slot onto the current slot"
method: POST
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/applySlotConfig"
tags: ["Sites"]
---

# Applies the configuration settings from the target slot onto the current slot

`POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/applySlotConfig`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/applySlotConfig`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

## Path parameters

- `resourceGroupName` string, required
- `name` string, required
- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Request body

- CsmSlotEntity: Class containing deployment slot parameters
  - `targetSlot` string: Set the destination deployment slot during swap operation
  - `preserveVnet` boolean: Get or set the flag indicating it should preserve VNet to the slot during swap

## Response `200`

OK

- Object

---

[API](https://skmtc.dev/azure/apis/website-management-client.md) - [All operations](https://skmtc.dev/azure/apis/website-management-client/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/website-management-client/revisions/e6d8fbd68044?raw)
