---
title: "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}"
method: PATCH
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}"
---

# PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}

`PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}`

Creates or updates an Application Insights web test definition.

## Path parameters

- `webTestName` string, required

## Parameters

- `../../../../../common-types/resource-management/v1/types.json#/components/parameters/ResourceGroupNameParameter` — unresolved $ref
- `../../../../../common-types/resource-management/v1/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref
- `../../../../../common-types/resource-management/v1/types.json#/components/parameters/SubscriptionIdParameter` — unresolved $ref

## Request body

- TagsResource — A container holding only the Tags for a resource, allowing the user to update the tags on a WebTest instance.
  - `tags` unknown

## Response `200`

Updating the Application Insights web test tags was successful. Web test tags are updated and returned with the rest of the WebTest object properties.

- WebTest — An azure resource object
  - `id` string — Azure resource Id
  - `name` string — Azure resource name
  - `type` string — Azure resource type
  - `location` string, required — Resource location
  - `tags` unknown

## Changes

- **2019-03-29** (2015-05-01) `bdc80776f056` — 3 warning
  - deleted the `path` request parameter `resourceGroupName`
  - deleted the `path` request parameter `subscriptionId`
  - deleted the `query` request parameter `api-version`

[Change history](https://skmtc.dev/azure/apis/applicationinsightsmanagementclient-12/changes/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Insights/webtests/:webTestName/patch.md)

---

[API](https://skmtc.dev/azure/apis/applicationinsightsmanagementclient-12.md) · [All operations](https://skmtc.dev/azure/apis/applicationinsightsmanagementclient-12/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/applicationinsightsmanagementclient-12/revisions/e9f3815acba7/schema)
