REFERENCE  ·  CONSUMERS AND REQUIREMENT SETS

POST /v1/consumers/{consumer_ref}/requirement-sets/{version}/preview

Impact of publishing. applies_to, grace_period_days → engagements newly failing (by rule), lines needing fresh confirmation, engagements unaffected.

NAMETYPEREQUIREDDESCRIPTION
consumer_ref string yes
version string yes
Idempotency-Key string no Optional, and the preferred way to make a retry safe. Send one on every POST and PUT; a replay returns the original response with idempotent_replay true and creates nothing new. POST /documents also accepts an idempotency_key form field as an alias; the header wins when both are sent
applies_to enum yes new (engagements opened from now on) or all_active (every active engagement for the consumer) One of: new, all_active.
grace_period_days integer no
FIELDTYPEDESCRIPTION
engagements_newly_failing object[]
lines_needing_confirmation string[]
engagements_unaffected integer

Errors: 400, 401, 403, 404, 422, 429, 500. Every error body carries error.code, error.message, and error.request_id.