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

## Changes

- **2026-07-13** (2018-12-01-preview) `1dc732ab31fc` — 1 info
  - api operation id `ClassificationRules_CreateOrUpdate` removed and replaced with `ClassificationRules_CreateOrReplace`

[Change history](https://skmtc.dev/azure/apis/purview-scanning/changes/classificationrules/:classificationRuleName/put.md)

---

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