---
title: "Swaps web app slots"
method: POST
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slotsswap"
tags: ["Sites"]
---

# Swaps web app slots

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

## 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

## Other responses

- `202` — Operation is in progress

---

[API](https://skmtc.net/azure/apis/website-management-client.md) · [All operations](https://skmtc.net/azure/apis/website-management-client/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/website-management-client/versions/e6d8fbd68044/schema)
