Get the currently-active labor standard for a TaskType
GET/standards/:taskType
Returns the LaborStandard whose effective range currently covers "now" for this TaskType (EffectiveTo is null), or a 404 if none does.
Without handlingUnit the answer is the task-type-only standard, exactly as before. With handlingUnit the answer is the standard that APPLIES to that handle: the standard declared for exactly (taskType, handlingUnit) when one is active, otherwise the task-type-only standard (most specific wins, ADR 0035). The returned body's own handlingUnit says which of the two answered (absent = the task-type-only one).
Without siteCode the answer is always a site-less standard, exactly as before. With siteCode the answer is the open standard of EXACTLY (taskType, handlingUnit or none, siteCode), with no fallback to the site-less standard or to the task-type-only one, and 404 when that site has none (ADR 0038). Which of a site's standard and the site-less one a consumer prefers is the consumer's rule.
Request
Responses
- 200
- 400
- 404
- 500
The currently-active (resolved) standard
Unknown task type, unknown handling unit, or a siteCode longer than 32 characters or containing whitespace (invalid-site-code)
No active standard for this task type (or, with siteCode, none for exactly that site)
Unexpected server error (problem type internal-error). Also the answer when an infrastructure failure aborts the request; a 5xx on POST /standards is never stored against its Idempotency-Key, so the same key can be retried.