v1
latestOpenAPI 3.1.02026-07-2618690613.4 KBDocuments
Update document
<Warning> **Deprecated** — Removal scheduled for **July 31, 2026**. Use the [Documents v2 API](/api/documents-v2/create-document) instead. </Warning>Update the name, description, and/or identifier of a document. Note: At least one of name, description, or identifier must be provided or the API will return a Bad Request error.
Renaming a document follows the app's draft/publish workflow:
| Document Type | Behavior |
|---|---|
| Draft | Renamed directly |
| Published (no existing draft) | Creates draft > Renames draft > Publishes draft |
| Published (existing draft, clearExistingDraft: true) | Discards existing draft > Creates new draft > Renames > Publishes |
| Published (existing draft, clearExistingDraft not set) | Returns 409 Conflict |
patch/v1/documents/{documentId}
Path parameters
documentIdstring required
Document identifier
Request body
Example request
{
"identifier": "sales-dashboard-archived"
}Response
Document renamed successfully