---
title: "Choose which team gets which items"
method: PUT
path: "/v1/contract-desk/settings"
tags: ["Contract Desk"]
---

# Choose which team gets which items

`PUT /v1/contract-desk/settings`

## Request

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

Replaces the workspace's team choices and asks for a build, which moves the items to their teams after the configured delay (10 seconds by default). An item's team is, in this order: the team chosen for its attribute (values only), the team chosen for its kind, the team the configuration names for its kind, the default team; a process step keeps its department. Every team must be one of `available_teams`, every kind one of `kinds`; at most `settings_fields_max` attributes (500 by default); no key may be `__proto__`, `constructor` or `prototype`. The change is recorded under the OAuth person or the key's creator, by the OAuth person's name or the key's (`api:<key id>`). Requires scope `write` and a person with the `workspace` permission (an Admin).

## Request body

- object
  - `teams` object, required
    - `kinds` object, required: `<kind>: <team>`; leave a kind out for the configured team.
    - `fields` object, required: `<field_key>: <team>` for value items; leave an attribute out for its kind's team.

## Response `200`

The Setup as saved.

- ContractDeskSettings
  - `teams` object: The workspace's choices.
    - `kinds` object: The team per item kind.
    - `fields` object: The team of the value items of each attribute (`field_key`).
  - `defaults` object: What the configuration gives when nothing is chosen.
    - `kinds` object
    - `default` string
  - `available_teams` string[]: The process departments plus the default team, sorted.
  - `kinds` string[]
  - `attributes` object[]: The workspace's required attributes, most open values first.
    - `field_key` string
    - `label` string
    - `open` integer
  - `updated_at` string, date-time, nullable
  - `updated_by_name` string, nullable

## Other responses

- `400`: A team outside `available_teams` or no text (`details.reason` `unknown_team`), a kind outside `kinds` (`unknown_kind`), more than `settings_fields_max` attributes (`too_many_fields`, with `details.max`), an empty or oversized attribute key or one holding a control character (`bad_field_key`), or `kinds` or `fields` that is no map or names `__proto__`, `constructor` or `prototype`, or a body that is no UTF-8 JSON (`bad_teams`).
- `403`: The key lacks the `write` scope, its person is no Admin (the `workspace` permission), or may not see every document the index names.
- `404`: The workspace has not added the app, or is not in the pilot.

## Changes

- **2026-12-04** `88d2070c4878`: 1 warning
  - added the new `issue` enum value to the `kinds/items/` response property for the response status `200`
- **2026-11-19** `27b968c6df42`: 1 info
  - endpoint added

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