Generate a slot plan
POST/slot-plans
Computes a new Draft plan for a site from the local demand, product and
layout copies and stores it. siteId defaults to the configured default
site; lookbackDays (1 to 365, default 28) sets the demand window, which
ends now and starts lookbackDays earlier. The plan lists its
assignments, the moves against the site's current Approved plan and the
SKUs it could not place, each with a reason. Requires an
Idempotency-Key; replaying the same key and body returns the original
plan for 24 hours after the first answer (then the key is forgotten
and the request executes again).
Request
Responses
- 201
- 400
- 409
- 500
The Draft plan was generated.
Response Headers
true when the response is the stored answer of an earlier request with the same Idempotency-Key; absent on the first execution.
Path of the new plan.
Malformed JSON body (also a body over 64 KiB, which is cut off and fails to parse), an unknown or trailing JSON field, a NUL character (U+0000) in the body or the query (Postgres text cannot hold it), an invalid path or query parameter, an unknown query parameter on a list or lookup endpoint, or a missing or invalid Idempotency-Key on a POST.
The Idempotency-Key was already used with a different request (method, path or body).
Unexpected server error.