Change offer state
POST/v1/offers/:id/state
Transition an offer's state (e.g. publish or accept). The DB trigger materializes the published/accepted snapshot. Offers only move forward: once an offer left DRAFT it cannot go back to DRAFT (409 offer_not_draft) — create a new offer instead. An offer can be accepted until the end of its validTo day (German time); after that, accepting answers 409 offer_expired — publish a new offer instead.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
The offer with its new state.
validation_error
invalid_api_key
insufficient_scope
not_found
offer_not_draft, offer_expired
db_error