Replace an offer
PUT/v1/offers/:id
Replaces a draft completely with the offer you send: lines you leave out are removed. Only drafts can be replaced; once an offer was published, the customer has seen it and the call answers 409 offer_not_draft — create a new offer instead. Requires the write:offers scope.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
The offer 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 record in your company.
offer_not_draft: the offer was published already and cannot be changed.
db_error: the database refused or failed the request. message has the details.