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

# PUT /classificationrules/{classificationRuleName}

`PUT /classificationrules/{classificationRuleName}`

Creates or Updates a classification rule

## Path parameters

- `classificationRuleName` string, required

## Query parameters

- `api-version` string, required

## Request body

- ClassificationRule
  - `id` string
  - `name` string

## Response `200`

Success

- ClassificationRule
  - `id` string
  - `name` string

## 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/9b34bf0f9a82/schema)
