---
title: "Add a rule by hand"
method: POST
path: "/v1/compliance/frameworks/{documentId}/rules"
tags: ["Compliance"]
---

# Add a rule by hand

`POST /v1/compliance/frameworks/{documentId}/rules`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/compliance/frameworks/{documentId}/rules`
- Auth: HTTP bearer

Adds a rule written by a person to the framework. Requires scope `apps:compliance:write`.

## Path parameters

- `documentId` string, required

## Request body

- object
  - `text` string, required: The rule, at most 2,000 characters.
  - `obligation` string: How binding the rule is.
  - `section` string: Where in the framework it stands.
  - `applies_to` string: What it applies to.
  - `condition` string: When it applies.
  - `threshold` string: The threshold it names.
  - `testable` boolean: Whether a document can be checked against it.

## Response `201`

The result.

- object

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.

## Changes

- **2026-11-26** `622d429de7ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/compliance/frameworks/:documentId/rules/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)
