Publish a new promise policy version (PublishPromisePolicy)
POST/promise-policies
Stores the next policy version (strictly increasing) and publishes PromisePolicyPublished on the analytics topic. Offers and promises made afterwards record the new policyVersion.
Request
Responses
- 201
- 400
- 409
- 422
- 500
Policy published.
Response Headers
Present, with the value "true", only when the response is the stored answer replayed for the same Idempotency-Key, method, path and body. The first execution never carries it.
The Idempotency-Key header is missing (idempotency-key-required) or malformed (idempotency-key-invalid), the request body is malformed (malformed-request, for bad JSON, an unknown field, trailing data, an empty body, a body over 64 KiB or a NUL character in the query or body), or a collection GET sent an undeclared query parameter (unknown-query-parameter), a bad limit (invalid-limit) or an undecodable cursor (invalid-cursor).
State, capacity, closed or concurrency conflict (illegal-transition, concurrent-update, offer-not-quotable, promise-capacity-exhausted, book-closed, promise-hold-expired, promise-closed, revision-moves-earlier), or idempotency-key-reused when the Idempotency-Key was already used with a different method, path or body.
Validation failure (validation-failed, group-spans-nodes, invalid-promise-terms, nominal-basis-not-allowed-for-tier).
Unexpected failure (internal-error); the detail never leaks the internal message. A 5xx is never stored for an Idempotency-Key, so the same key can retry.