Update a draft quote
PATCH/api/v1/quotes/:id
Update a draft quote by ID. Only quotes in draft state can be updated.
Request
Responses
- 200
- 401
- 404
- 422
The quote was updated with the submitted attributes
The request did not include a valid OAuth 2.0 access token
No quote exists with the given ID, or it belongs to another workspace
The request body failed validation. The response body carries code: "validation_failed" and reports the invalid attributes under details.base, as full messages naming the attribute. Among them a currency_code that names no ISO 4217 currency: currency codes are matched case-sensitively against the two code lists Scribee vendors (the UN/CEFACT ISO3AlphaCurrencyCode enumeration unioned with the Peppol BIS ISO4217 list), so eur is refused rather than upcased. A currency_code that is not a String is refused with the same 422: only an omitted key, an explicit null, or a blank String counts as absence and defaults to EUR, so the JSON literal false reaches the ISO 4217 rule rather than being read as absence. The stored currency code is then left untouched, because the refusal rolls the write back.