Create a new Document

Create a new document with the given information.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Multipart payload with the document's fields plus an optional file part, draft_id to delete on creation, and review_template_links JSON array.

Raw payload collected from the multipart request body of POST /v1/documents.
Validation and conversion into a CreateDocument happens in into_create_document.

int64 | null
string | null
int64 | null

If provided, the draft with this ID is deleted after the live document is created.

file | null

Binary file content. Accepted types: PDF, DOCX, XLSX, PPTX. Only stored when type is
DIGITAL and source is ONLINE; ignored otherwise.

location_ids
array of int64s | null
location_ids
main_trade_ids
array of int64s | null
main_trade_ids
string
required
string | null
int64 | null
string
enum
required
Allowed:
int64 | null
team_ids
array of int64s | null
team_ids
string
enum
required
Allowed:
string
enum
required
Allowed:
Responses

400

Validation error

401

Unauthorized

403

Forbidden

413

Payload too large

500

Failed to create document

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json