---
title: "Tag many documents at once"
method: PATCH
path: "/v1/documents/batch-tag"
tags: ["Documents"]
---

# Tag many documents at once

`PATCH /v1/documents/batch-tag`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/documents/batch-tag`
- Auth: HTTP bearer

Adds, removes or sets tags on up to 1000 documents. Tags the documents the key's person may classify; the others (hidden, missing, or on access scopes held by someone else) are listed in `refused` and answer `status: refused` without their tags, and nothing changes on them. Answers each tagged document's resulting tags and the id of the audit event recorded for the change. Requires the `documents:write` scope. The key's person must be an Admin of the workspace, as in the web app; in a workspace whose model configuration Talonic manages this answers 403 `insufficient_role`.

## Request body

- object
  - `document_ids` string[], required
  - `tags` string[], required
  - `mode` 'add' | 'remove' | 'set'

## Response `200`

OK

- object
  - `updated` integer
  - `mode` string
  - `tags` string[]
  - `refused` string[]
  - `results` object[]
    - `id` string, uuid
    - `status` 'updated' | 'refused'
    - `tags` string[]
  - `audit_event_id` string, nullable

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `429`: Daily rate limit exceeded.

## Changes

- **2026-11-27** `90feef18b640`: 1 warning, 1 info
  - added the new `refused` enum value to the `results/items/status` response property for the response status `200`
  - added the optional property `refused` to the response with the `200` status
- **2026-11-26** `622d429de7ea`: 1 info
  - endpoint added

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