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

# Update a Document

`PATCH /document/{id}`

## Path parameters

- `id` string, required — Unique identifier for object

## Request body

- object
  - `bankdata` object — Optional arbitrary data the bank can attach to the object
  - `fields` object — Object representing the data encoded in the Document
  - `name` string — A descriptive name for the document
  - `type` string — One of: `drivers_license`, `military_id`, `passport`, `state_id`, `other`
  - `userdata` object — Optional arbitrary data the user can attach to the object

## Response `200`

The document updated

- object
  - `bank_id` string — ID of the bank with which the object is associated
  - `bankdata` object — Optional arbitrary data the bank can attach to the object
  - `description` string — Description (deprecated)
  - `fields` object — Object representing the data encoded in the Document
  - `file_id` string — The unique ID for an attached File
  - `id` string — Unique identifier for object
  - `name` string — A descriptive name for the document
  - `org_id` string — ID of the organization with which the object is associated
  - `type` string — One of: `drivers_license`, `military_id`, `passport`, `state_id`, `other`
  - `userdata` object — Optional arbitrary data the user can attach to the object

---

[API](https://skmtc.net/treasuryprime/apis/account.md) · [All operations](https://skmtc.net/treasuryprime/apis/account/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/treasuryprime/account/versions/95a3c69c14e8/schema)
