Skip to main content

Replace the file of a document

PUT 

/v1/offers/:id/documents/:documentId/file

Puts another file in the document's place. Send a form (multipart/form-data) with the file in file. The document keeps its id, name, description and type, so links to it stay valid. On a published or accepted offer the customer sees the change at once, and the offer's history names the API key. No mail is sent.

Sending the file it has already changes nothing. A file another document of the offer has is refused (409 document_already_in_offer), and so is the Kommissionsliste (409 document_read_only). Requires the read:documents and write:offers scopes.

Request​

Responses​

The document with the new file.