Rename a document of an offer
PATCH/v1/offers/:id/documents/:documentId
Changes the document's name or description; a field you leave out stays as it is. 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. The Kommissionsliste cannot be changed (409 document_read_only). To put another file in its place, see PUT …/file. Requires the read:documents and write:offers scopes.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
The document after the change.
validation_error: the body, a path or a query parameter is not valid. message names each problem, e.g. firstName: Required.
missing_api_key or invalid_api_key: no API key was sent, or it is wrong, expired or revoked.
insufficient_scope: the API key does not have the scope this endpoint needs. required names it.
not_found: there is no such offer in your company, or no such document on it.
document_read_only: the document is the Kommissionsliste.
db_error: the document could not be read. storage_error: its file could not be signed for download. message has the details.