Skip to main content
Create a draft

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
body
object
required

The document as it stands so far, in the shape it is stored in, with the metadata definition's own fields alongside as further keys. Fields the server owns are ignored when sent.

cloneFiles
boolean
default:false

Gives the draft its own copies of the attachments, on the same grounds as cloneMainFile.

Example:

false

cloneMainFile
boolean
default:false

Gives the draft its own copy of the main file instead of pointing at the one it was taken from, so editing the draft cannot affect the original.

Example:

false

source
boolean
default:false

Returns the stored draft alongside its identifier, saving a read to see what was actually saved after the server filled in the computed fields.

Example:

false

Response

Returns the identifier of the stored draft.

id
string

Value the request produced: the identifier of the object it created or acted upon, or - on the endpoints that issue one - the token it granted.

Example:

"e58cc1acbba3cd8056ce6adb44d46a11a113170e884509c179701270b915b59b"

source
object

The stored draft in full, echoed back only when the request asked for it - what the draft actually looks like once the server has filled in the fields it owns and resolved the computed ones.