Skip to main content

Replace the file of a product's document

PUT 

/v1/materials/:type/:id/documents/:documentId/file

Puts another PDF in the document's place. Send a form (multipart/form-data) with it in file. The document keeps its id, name and description; offers that took it over keep the file they have. Sending the file it has changes nothing, a file another document of the product has is refused (409 document_already_on_material). Requires the write:materials scope.

Request​

Responses​

The document with the new file.