Skip to main content

Upload Product Document

POST 

/api/v2/products/:product/documents

File a document against a product.

Required scope: products:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Send as multipart/form-data. Max file size 20 MB; executables and scripts are rejected.

New version. Set supersedes_document_id to upload the newer version of a document already on this product. The older version is kept and returned with is_current: false. The request is refused with 422 when the document is not on this product, is a different type, or already has a newer version.

Requires permission: products.update. API tokens need the products:write scope.

Request​

Responses​

OK

Response Headers
    Content-Type