Skip to main content

Declare the yard policy (DeclareYardPolicy)

PUT 

/sites/:siteId/yard-policy

Replaces the policy of the site. Holding spots must be known Yard slots of the site (422 unknown-location); thresholds and lease must be positive (422 validation). If-Match makes the replacement conditional on the policy version (412 precondition-failed). The only 404 is resource-not-found (a NUL character in the path).

Request​

Responses​

The declared policy.

Response Headers
    Idempotency-Replayed

    Present, with the value true, only when the answer is a replay of the stored answer of an earlier request with the same Idempotency-Key (a success or a refusal that cannot change; a refusal the same request could pass later is never stored).

    ETag

    A weak validator of the aggregate version, e.g. W/"3".