---
title: "Update Document"
method: PATCH
path: "/api/document/{document_ext_id}"
tags: ["document"]
---

# Update Document

`PATCH /api/document/{document_ext_id}`

Update document metadata such as title, date, or sharing status.
Changes are encrypted before storage in the database.

## Path parameters

- `document_ext_id` string, required

## Request body

- DocUpdate
  - `doc_date` string, date, nullable
  - `title` string, nullable
  - `shared` boolean, nullable

## Response `200`

Successful Response

- UpdateResponse
  - `success` boolean, required
  - `detail` string, nullable
  - `external_id` string, required
  - `title` string, required
  - `doc_date` string, date, nullable
  - `shared` boolean, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2025-08-06** `43c12480eb1b` — 2 info
  - the response property `title` became required for the status `200`
  - response property `title` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`

[Change history](https://skmtc.dev/arbicity/apis/arbi/changes/api/document/:document_ext_id/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/8d3e894e6c0b/schema)
