---
title: "Decide one item at its source app"
method: POST
path: "/v1/contract-desk/items/{id}/decide"
tags: ["Contract Desk"]
---

# Decide one item at its source app

`POST /v1/contract-desk/items/{id}/decide`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/contract-desk/items/{id}/decide`
- Auth: HTTP bearer

The desk decides nothing itself: the decision is one call to the source app's own method, recorded there as the app (`api:<key id>`) with the key's person; the desk's own log names the OAuth person or the key's creator. Before the call the source app is asked whether it still holds the item open: a value decided in Contract Check, a key date or step handled in Contracts, or a contract that holds an outcome there since the last build answers 409 `gone`, writes nothing and asks for a build. A value (`set` with a value, or `crm_add`, which takes the Talonic value) goes to Contract Check with the verdict its own dialog gives (the CRM value, trimmed and case-insensitive: `crm_ok`; another value: `crm_update`; `crm_add`: `not_maintained`); field review's rules still apply there, so a value can become a suggestion that waits for a person who may settle the field. A key date is marked handled in Contracts, or a notice deadline's outcome (`notice_sent`, `renewal_declined`, `terminated`) recorded on the contract; a step is marked handled. A decided item leaves the index at once, the next build (after the configured delay, 10 seconds by default) follows. `dry_run` writes nothing and answers what would happen. Requires scope `write` and a person with the `edit` permission.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `action` 'set' | 'crm_add' | 'handled' | 'notice_sent' | 'renewal_declined' | 'terminated' | 'dismiss', required: One the item's kind offers: a value `set` (and `crm_add` where the CRM lacks the value); a notice deadline its three outcomes and `handled`; any other key date and a step `handled`; a Contracts issue `dismiss`, which needs a `note` (400 `note_required` without one). An item marked information only (`payload.info`) offers none.
  - `value` string: The value `set` records (at most `value_max_chars`, 10,000); it may run over several lines (tab, line feed and carriage return pass, every other control character answers 400). No other action takes one.
  - `note` string: Why, in a few words (at most `note_max_chars`, 2,000; tab, line feed and carriage return pass); recorded at the source and in the desk's log.
  - `dry_run` boolean

## Response `200`

What the decision became.

- ContractDeskDecisionOutcome
  - `status` 'decided' | 'suggested': `suggested`: the value waits for a person who may settle the field; the item stays open, marked as waiting.
  - `dry_run` boolean
  - `decision_id` string, uuid, nullable: The desk's log row (`GET /v1/contract-desk/decisions`); null on a dry run.
  - `undoable` boolean
  - `crm_report` 'update' | 'missing', nullable: What Contract Check reports to the CRM: a value to update, a value missing; null for none.
  - `revision` integer: The index revision after the decision (`GET /v1/contract-desk/status`).

## Other responses

- `400`: An action the item's kind does not offer (`details.reason` `not_offered`; also a contract outcome on a notice deadline whose contract holds another outcome in Contracts while the date is still open: `handled` stays offered), `set` without a value (`value_required`), a value on another action (`value_not_taken`), a value or note too long (`value_too_long`, `note_too_long`) or holding a control character other than tab, line feed and carriage return (`control_character`), or an id that is no uuid.
- `403`: The key lacks the `write` scope, its person lacks the `edit` permission, or may not see every document the index names.
- `404`: The workspace has not added the app or is not in the pilot, or holds no such item.
- `409`: The item is gone (`details.reason` `gone`): a decision of the workspace closed it (with `by_name` and `at`), or the source app no longer holds it open (no name; also a value of a contract Contract Check holds only in the CRM or no longer returns, and a key date or step Contracts no longer knows). Another decision or a build holds it right now, or the API process records the most decisions it takes at once (`busy`); the workspace has not added the source app (`source_app_missing`, `details.app` `contract-check` or `contracts`), or the workspace switched the app off (its index is not kept current then).
- `422`: The source app refused or failed (`details.reason` `source_refused`); `message` is its own sentence (Contract Check's reason for a value; a fixed sentence when Contracts fails without one). Nothing changed in the desk; a build is asked for.

## Changes

- **2026-12-04** `88d2070c4878`: 1 info
  - added the new `dismiss` enum value to the request property `action`
- **2026-11-19** `27b968c6df42`: 1 info
  - endpoint added

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