---
title: "PUT /classificationrules/{classificationRuleName}"
method: PUT
path: "/classificationrules/{classificationRuleName}"
tags: ["ClassificationRules"]
---

# PUT /classificationrules/{classificationRuleName}

`PUT /classificationrules/{classificationRuleName}`

Creates or replaces a classification rule.

## Path parameters

- `classificationRuleName` string, required

## Query parameters

- `api-version` string, required

## Request body

- ClassificationRule — The proxy resource.
  - `id` string — The resource identifier.
  - `name` string — The resource name.

## Response `200`

Success.

- ClassificationRule — The proxy resource.
  - `id` string — The resource identifier.
  - `name` string — The resource name.

## Other responses

- `201` — Success.
- `default` — An error response received from the Scanning Service.

---

[API](https://skmtc.net/azure/apis/purview-scanning.md) · [All operations](https://skmtc.net/azure/apis/purview-scanning/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/purview-scanning/versions/1dc732ab31fc/schema)
