---
title: "Create sets that follow assembly groups"
method: POST
path: "/v1/compliance/sets/from-assemblies"
tags: ["Compliance"]
---

# Create sets that follow assembly groups

`POST /v1/compliance/sets/from-assemblies`

## Request

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

Creates one set per group, named "pipeline · group". Its members are read anew from the group at each evaluation. A group a set already follows is skipped. A group with more documents than the configured maximum (20 by default) keeps its first documents.

## Request body

- object
  - `groups` object[], required
    - `pipeline_id` string, uuid, required
    - `group_key` string, required: The group's shared value.
  - `rule_set_id` string, uuid, nullable: The rule set to judge the sets against; omitted or null means every rule of the ON frameworks.

## Response `201`

The sets created (groups skipped are absent).

- object
  - `data` 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.

## Changes

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

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