---
title: "Update a Document"
method: PATCH
path: "/v2/transactions/{transactionId}/documents/{documentId}"
tags: ["Transaction Documents"]
---

# Update a Document

`PATCH /v2/transactions/{transactionId}/documents/{documentId}`

## Request

- Base URL: `https://api.pre.transactiondesk.com`
- URL: `https://api.pre.transactiondesk.com/v2/transactions/{transactionId}/documents/{documentId}`
- Auth: HTTP bearer

Updates the name of a specific document within a transaction.

## Request body

- object
  - `documentName` string

## Response `200`

Document updated successfully

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `404`: Document not found

---

[API](https://skmtc.dev/lwolf/apis/transactiondesk-partner-api.md) · [All operations](https://skmtc.dev/lwolf/apis/transactiondesk-partner-api/llms.txt) · [OpenAPI document](https://skmtc.dev/lwolf/apis/transactiondesk-partner-api/revisions/9bb49674e238?raw)
