Skip to main content
Version: 56.0.0

Create a document

POST 

/api/v1/documents

Creates a document from a JSON body, or from a multipart request carrying a document JSON part and the file parts that it references. A file part is attached only when primaryFile.contentPart in the document JSON names it; every part other than document must be referenced, and a part name must not repeat. Either variant can instead take the primary file from a ready upload of the caller with primaryFile.uploadId; a successful creation consumes the upload, and a failed one leaves it usable until it expires. See Uploading files. By default, a JSON body and the document part are limited to 1 MiB, a file part to 24 MiB, and a multipart body to 32 MiB; an environment can configure different limits.

Request​

Responses​

Document created.

Response Headers
    Location

    Path of the created document, such as /api/v1/documents/1234.