---
title: "Create a rule set"
method: POST
path: "/v1/compliance/rule-sets"
tags: ["Compliance"]
---

# Create a rule set

`POST /v1/compliance/rule-sets`

## Request

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

A named, hand-picked list of rules, so that a document set is judged only against the rules that matter to it. Every rule must belong to a framework that is ON and completed.

## Request body

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

## Response `201`

The rule set.

- 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.
- `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/post.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)
