Skip to main content

Publish the next sourcing policy version (PublishSourcingPolicy)

PUT 

/sourcing-policy

Replaces the whole policy document: validates every range, stores version n+1 (n is the highest stored version, 0 when none) and raises the analytics-only SourcingPolicyPublished event in the same transaction. An omitted field takes its default, 0 (the lever is off); an empty body is 400. Every call publishes a NEW version, so it takes an Idempotency-Key like a POST: the same key with the same body replays the first answer for 24 hours instead of publishing twice; a retryable refusal (validation-failed, concurrent-update) is not stored, so the retry under the same key publishes; policy-version-not-next (the policy version is at its ceiling) is stored and replayed instead. The same key with another request that was stored is 409 idempotency-key-reused. Searches that started before the publish keep the version they read.

Request​

Responses​

The published version. A replay of the first answer carries Idempotency-Replayed: true.

Response Headers
    Idempotency-Replayed

    Present, with the value true, only when the response is a replay of the first answer.