---
title: "Choose which process rules the workspace runs"
method: PUT
path: "/v1/contracts/settings"
tags: ["Contracts"]
---

# Choose which process rules the workspace runs

`PUT /v1/contracts/settings`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/contracts/settings`
- Auth: HTTP bearer

Saves the rule mode and the chosen rule ids; the list is kept in catalogue order and survives a switch to `all`. Every contract's open process items are worked out again shortly after. The change is recorded with the key as actor. Answers the saved settings, not wrapped in `data`.

## Request body

- object
  - `rules_mode` 'all' | 'chosen', required: `all` runs every process rule; `chosen` only `active_rule_ids`.
  - `active_rule_ids` string[], required: The chosen rule ids (from `GET /v1/contracts/process-rules`); sent in both modes so a switch to `all` keeps the list.

## Response `200`

The saved settings.

- ContractsSettings
  - `rules_mode` 'all' | 'chosen'
  - `active_rule_ids` string[]: The chosen rule ids, in catalogue order.
  - `updated_at` string, date-time, nullable
  - `updated_by` string, nullable: Who saved it last; `api:<key id>` for an API key.
  - `total_rules` integer: Rules in the catalogue.

## 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.
- `422`: A rule id is not in the process catalogue.
- `429`: Daily rate limit exceeded.

## Changes

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

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/contracts/settings/put.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)
