Skip to main content

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​

The policy is declared at its new version.

Response Headers
    ETag

    Strong entity tag of the resource: the quoted version, for example "3".