---
title: "Update Documents"
method: PATCH
path: "/api/document/"
tags: ["document"]
---

# Update Documents

`PATCH /api/document/`

Update one or more documents.

## Headers

- `workspace-key` string

## Request body

- UpdateDocumentsRequest — Update one or more documents.
  - `documents` DocUpdateRequest[], required
    - `external_id` string, required
    - `doc_date` string, date, nullable
    - `title` string, nullable
    - `shared` boolean, nullable

## Response `200`

Successful Response

- DocResponse[]
  - `external_id` string, required
  - `workspace_ext_id` string, required
  - `file_name` string, nullable
  - `status` string, nullable
  - `n_pages` integer, nullable
  - `n_chunks` integer, nullable
  - `tokens` integer, nullable
  - `file_type` string, nullable
  - `file_size` integer, nullable
  - `storage_type` string, nullable
  - `storage_uri` string, nullable
  - `title` string, required
  - `doc_date` string, date, nullable
  - `shared` boolean, nullable
  - `re_ocred` boolean, nullable
  - `config_ext_id` string, nullable
  - `created_by_ext_id` string, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `doctags` DocTagResponse[]
    - `doc_ext_id` string, required
    - `tag_ext_id` string, required
    - `note` string, nullable
    - `created_by_ext_id` string, required
    - `updated_by_ext_id` string, nullable
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Other responses

- `422` — Validation Error

## Changes

- **2025-12-03** `05f131dd000a` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/arbicity/apis/arbi/changes/api/document/patch.md)

---

[API](https://skmtc.dev/arbicity/apis/arbi.md) · [All operations](https://skmtc.dev/arbicity/apis/arbi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/arbicity/arbi/revisions/05f131dd000a/schema)
