Take the parts' datasheets over into an offer
POST/v1/offers/:id/documents/datasheets
Adds the datasheets and certificates your catalog has for the offer's parts, as "Datenblätter übernehmen" in the planner does: each file once, with the model added to its name where two files are called the same. Files the offer has already are left out, so the call can be repeated after the offer has changed; it removes nothing. On a published or accepted offer the customer sees the documents at once, and the offer's history names the API key. No mail is sent.
The first call for a part can take some seconds, as its files are read once. Requires the read:documents, write:offers and read:materials scopes.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 429
- 500
What was added.
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 record in your company.
offer_not_accepted: ORDERED needs an accepted offer. document_already_in_offer: somebody else added one of the files meanwhile; repeat the call.
rate_limited: the API key has stored 1000 files within the hour. Try again after the seconds in the Retry-After header.
Response Headers
db_error: the database refused or failed the request. storage_error: a file could not be read or stored. message has the details.