---
title: "Add a role on a contract row"
method: POST
path: "/v1/parties/rows/{productId}/{rowId}/roles"
tags: ["Contract Party Management"]
---

# Add a role on a contract row

`POST /v1/parties/rows/{productId}/{rowId}/roles`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/parties/rows/{productId}/{rowId}/roles`
- Auth: HTTP bearer

Gives an existing party a role on the row, confirmed unless `state` says `suggested`. When the party already holds the role on the row, that role is updated instead.

## Path parameters

- `productId` string, uuid, required
- `rowId` string, required

## Request body

- intersection
  - required: `party_id`, `role`
  - [`PartiesRoleInput`](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e/schema?at=%2Fcomponents%2Fschemas%2FPartiesRoleInput)

## Response `201`

The role.

- PartiesRole: One role a party holds on a contract row.
  - `id` string, uuid
  - `customer_id` string, uuid
  - `contract_id` string, uuid, nullable
  - `data_product_id` string, uuid, nullable
  - `row_id` string, nullable: The data product record id.
  - `party_id` string, uuid
  - `role` 'partner' | 'our_party' | 'manager' | 'tenant' | 'previous_owner' | 'new_owner' | 'contact' | 'invoice_recipient': `partner` the party the contract is signed with; `our_party` the workspace's own side; `manager` a Verwalter acting for another party; `tenant` a tenant, the effective partner while it `enters_contract` and its period covers the day; `previous_owner` and `new_owner` around an owner change; `contact`; `invoice_recipient`.
  - `represents_id` string, uuid, nullable: For a Verwalter or contact: the role it acts for.
  - `valid_from` string, date, nullable
  - `valid_to` string, date, nullable
  - `enters_contract` boolean
  - `state` 'suggested' | 'confirmed' | 'rejected'
  - `confidence` 'high' | 'medium' | 'low', nullable
  - `evidence` PartiesRoleEvidence[]
    - `kind` 'document' | 'reference' | 'capture' | 'registry' | 'contract' | 'person', required
    - `document_id` string, uuid: kind document, capture, registry, contract.
    - `filename` string, nullable: kind document, registry, contract.
    - `quote` string: kind document, contract: the verbatim passage.
    - `verified` boolean: kind document: the quote occurs in the named document.
    - `table` string, nullable: kind reference: the contract register table.
    - `record_id` string: kind reference.
    - `column` string: kind reference.
    - `value` string: kind reference, capture, registry, contract.
    - `product` string: kind capture: the data product name.
    - `product_id` string: kind capture.
    - `field` string: kind capture, registry.
    - `by` string: kind person.
    - `at` string, date-time: kind person.
    - `note` string, nullable: kind person.
  - `origin` 'document' | 'reference' | 'capture' | 'registry' | 'contracts' | 'person' | 'import'
  - `decided_by` string, nullable
  - `decided_at` string, date-time, nullable
  - `note` string, nullable
  - `created_at` string, date-time
  - `updated_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/parties/rows/:productId/:rowId/roles/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)
