Skip to main content
POST
Fill a document draft

Authorizations

Authorization
string
header
required

The org's platform API key.

Path Parameters

id
string
required

The draft id. The first fill creates the draft under this id; it is 1 to 200 letters, digits, '_', '.', ':' or '-'.

Body

application/json
values
object[] | null
required

The values to apply, each with its source. client and signature fields are refused; constant fields are ignored.

expected_updated_at
string<date-time>

The draft's updated_at as last read. Required to revise a draft; a newer draft answers 412 ETAG_MISMATCH with reason RECORD_CHANGED.

repin
boolean

Move the draft to the type's newest version and the org's active template.

subject
string

The Records record reference the document is about, or seat:<your user id> for a draft about no account on file, which only that seat reads, revises or downloads and which is never filed. Required on the first fill. On a revision of a draft about no account, a record reference moves the draft onto that record; a draft already about a record keeps it.

type
string

The document type key. Required on the first fill, which creates the draft; a revision may omit it.

Response

OK

data
object
required