---
title: "PUT /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}"
method: PUT
path: "/{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}"
tags: ["Suppressions"]
---

# PUT /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}

`PUT /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Enables the snoozed or dismissed attribute of a recommendation. The snoozed or dismissed attribute is referred to as a suppression. Use this API to create or update the snoozed or dismissed status of a recommendation.

## Path parameters

- `resourceUri` string, required
- `recommendationId` string, required
- `name` string, required

## Query parameters

- `api-version` string, required

## Request body

- SuppressionContract: The details of the snoozed or dismissed rule; for example, the duration, name, and GUID associated with the rule.
  - `id` string: The resource ID.
  - `name` string: The name of the resource.
  - `type` string: The type of the resource.
  - `properties` SuppressionProperties: The properties of the suppression.
    - `suppressionId` string: The GUID of the suppression.
    - `ttl` string: The duration for which the suppression is valid.

## Response `200`

OK. Successfully created suppression.

- SuppressionContract: The details of the snoozed or dismissed rule; for example, the duration, name, and GUID associated with the rule.
  - `id` string: The resource ID.
  - `name` string: The name of the resource.
  - `type` string: The type of the resource.
  - `properties` SuppressionProperties: The properties of the suppression.
    - `suppressionId` string: The GUID of the suppression.
    - `ttl` string: The duration for which the suppression is valid.

---

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