Rename a document. The rename operation 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 |
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Document identifier