Declare or replace a site's interleaving policy
PUT/sites/:siteId/policy
Declares the interleaving policy of a site, or replaces it with a new
version. Until a site has a policy no hint is issued for it. Validation:
maxDetourM greater than 0, maxCandidates 1 to 5, hintTtlSeconds
greater than 0, eligibleTaskTypes non-empty and a subset of PICK,
PACK, REBIN, SLAM, RELOCATE, REPLENISH, verticalWeight at
least 0 (default 1). The first declaration sends no If-Match; once a
policy exists, If-Match must carry its current version. A stale or
missing If-Match on an existing policy is a 412 version-mismatch.
Declaring the same values again still advances the version.
Request
Responses
- 200
- 400
- 409
- 412
- 500
The policy is declared at its new version.
Response Headers
Strong entity tag of the resource: the quoted version, for example "3".
Malformed JSON body, an unknown field, an invalid policy value, or an invalid path or query parameter.
Another request changed the policy first (concurrent-modification), or the Idempotency-Key was already used with a different request (idempotency-key-reused).
The If-Match value is missing or does not match the policy's current version; re-fetch and retry.
Unexpected server error.