Skip to main content
PATCH
Replace or rename a template document

Authorizations

Authorization
string
header
required

API key for authentication. Use your API key directly without any prefix (e.g., 'your-api-key'). Bearer prefix is optional but not required.

Path Parameters

id
string<uuid>
required

Template ID

document_id
string<uuid>
required

The document id (documents[].document_id)

Body

application/json
document_id
string<uuid>

Temporary upload id from POST /documents: the replacement PDF.

label
string | null

The new display name (null clears it).

Maximum string length: 200

Response

Document replaced or renamed; the full document set after the change

Answer of every /documents mutation: the full document set after the change and its two versions.

documents
object[]
required
documents_version
integer
required
documents_layout_version
integer
required