Skip to main content
PATCH
/
v1
/
documents
/
{documentId}
Rename document
curl --request PATCH \
  --url https://{instance}.omniapp.co/api/v1/documents/{documentId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "clearExistingDraft": true
}
'
{
  "identifier": "doc-123",
  "name": "New Document Name"
}

Authorizations

Authorization
string
header
required

Can be either an Organization API Key or Personal Access Token (PAT).

Include in the Authorization header as: Bearer YOUR_TOKEN

Path Parameters

documentId
string
required

Document identifier

Body

application/json
name
string
required

New name for the document

Required string length: 1 - 255
clearExistingDraft
boolean

If true, discards any existing draft before renaming.

Note: This parameter is required when a draft exists for the document.

Response

Document renamed successfully

identifier
string

The document identifier

name
string

The new document name