Skip to main content
Rename a document

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Body

application/json
id
string
required

Identifier of the document to rename.

Minimum string length: 1
Pattern: ^[A-Za-z0-9_-]+$
Example:

"a0d01c9d-f72f-4c57-af11-e26bda19cc59"

name
string
required

New title for the document. It is sanitized so that it can serve as a file name, so the stored title can differ from the one sent.

Minimum string length: 1
Example:

"Updated Contract Agreement"

version
integer
required

Version the document is expected to be at; the rename is refused when it does not match the stored one.

Required range: x > 0
Example:

6

Response

The document was renamed.

status
string

Outcome of the operation, reported as a status type constant.

Example:

"SUCCESS"