---
title: "Edit a document set"
method: PATCH
path: "/v1/compliance/sets/{setId}"
tags: ["Compliance"]
---

# Edit a document set

`PATCH /v1/compliance/sets/{setId}`

## Request

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

Fields left out stay. Changing the documents replaces them, makes the set's evaluation outdated, and turns an assembly set into a hand-picked one. `rule_set_id: null` returns the set to every rule of the ON frameworks. Sending the same name, documents or rule set changes nothing.

## Path parameters

- `setId` string, uuid, required

## Request body

- object
  - `name` string
  - `document_ids` string[]: The configured maximum (20 by default) applies on top.
  - `rule_set_id` string, uuid, nullable

## Response `200`

The set after the change.

- ComplianceDocumentSet
  - `id` string, uuid
  - `name` string
  - `source` 'manual' | 'assembly'
  - `source_ref` object, nullable: For an `assembly` set: the pipeline and the group it follows.
    - `pipeline_id` string, uuid
    - `group_key` string
  - `documents` object[]
    - `id` string, uuid
    - `filename` string
    - `display_name` string, nullable
  - `rule_set_id` string, uuid, nullable: Null means every rule of the ON frameworks.
  - `rule_set_name` string, nullable
  - `created_at` string, date-time

## 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/sets/:setId/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)
