---
title: "Set or remove a link key"
method: PATCH
path: "/v1/linking/link-keys/{fieldId}"
tags: ["Linking"]
---

# Set or remove a link key

`PATCH /v1/linking/link-keys/{fieldId}`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/linking/link-keys/{fieldId}`
- Auth: HTTP bearer

Makes a field a link key of the workspace (documents that share its value are linked), or stops using it as one. Turning one on with a category starts linking existing documents in the background (`backfill_triggered: true`); follow it on `GET /v1/linking/backfill/progress`. Requires `records:write`. The person behind the key must be an Admin of the workspace, and the workspace must manage its own configuration; otherwise the answer is 403 `insufficient_role`.

## Path parameters

- `fieldId` string, uuid, required

## Request body

- object
  - `link_key` boolean, required
  - `link_key_category` 'identity' | 'transaction' | 'reference': What the value identifies: a party (identity), a business event (transaction) or a document reference.

## Response `200`

OK

- object
  - `field_id` string, uuid
  - `link_key` boolean
  - `link_key_category` string, nullable
  - `backfill_triggered` boolean

## 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.
- `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/linking/link-keys/:fieldId/patch.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)
