---
title: "Creates a new web app or modifies an existing web app."
method: PUT
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}"
tags: ["Sites"]
---

# Creates a new web app or modifies an existing web app.

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

## Path parameters

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

## Query parameters

- `skipDnsRegistration` string
- `skipCustomDomainVerification` string
- `forceDnsRegistration` string
- `ttlInSeconds` string
- `api-version` string, required

## Request body

- Site
  - `id` string — Resource Id
  - `name` string — Resource Name
  - `kind` string — Kind of resource
  - `location` string, required — Resource Location
  - `type` string — Resource type
  - `tags` object — Resource tags

## Response `200`

OK

- Site
  - `id` string — Resource Id
  - `name` string — Resource Name
  - `kind` string — Kind of resource
  - `location` string, required — Resource Location
  - `type` string — Resource type
  - `tags` object — Resource tags

## Other responses

- `202` — Asynchronous operation in progress

---

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