Declare the labour minutes a dock appointment costs at a site for a process path
PUT/inbound-labour-standards/:location/:path_id
Upserts the inbound labour standard keyed by (location, path_id): fixed minutes_per_appointment plus an optional minutes_per_asn per ASN the appointment covers (the booked event carries no units, pallets or lines). The standard is a planning parameter owned by this service (docs/adr/0017): nobody upstream publishes it. Without one, dock appointments are recorded but contribute NO labour demand and the plan reports inbound_standard_missing; no default number is ever guessed. Nothing derived is stored, so a late declaration applies on the next read.
Request
Responses
- 200
- 201
- 400
- 422
- 500
An existing standard was replaced.
A new standard was declared.
Malformed request body.
minutes_per_appointment is not positive, minutes_per_asn is negative, or a figure is not finite.
An unexpected failure (a store or outbox error). Answered as problem+json (internal-error). A 5xx answer is never stored under an Idempotency-Key and rolls back the aggregate change and its outbox rows, so the retry re-executes.