---
title: "Rename a rule set or change its rules"
method: PATCH
path: "/v1/compliance/rule-sets/{ruleSetId}"
tags: ["Compliance"]
---

# Rename a rule set or change its rules

`PATCH /v1/compliance/rule-sets/{ruleSetId}`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/compliance/rule-sets/{ruleSetId}`
- Auth: HTTP bearer

Fields left out stay. Rules of OFF frameworks that the set holds are kept, so turning a framework OFF and ON again loses nothing; the rules sent replace the others. A change of rules makes the evaluations of document sets using this rule set outdated; a rename does not.

## Path parameters

- `ruleSetId` string, uuid, required

## Request body

- object
  - `name` string
  - `rule_ids` string[]

## Response `200`

The rule set after the change.

- ComplianceRuleSet
  - `id` string, uuid
  - `name` string
  - `rule_ids` string[]: The rules in force (their framework is ON).
  - `frameworks` object[]: The frameworks those rules come from.
    - `document_id` string, uuid
    - `name` string
    - `rule_count` integer
  - `created_at` string, date-time
  - `updated_at` string, date-time: Changes with the rules, not with a rename.

## Other responses

- `400`: The request is invalid.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.
- `422`: The request is well-formed but violates the declared task contract.

## Changes

- **2026-10-28** `0a485a46163e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/compliance/rule-sets/:ruleSetId/patch.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
