Set or replace a product's handling classification
PUT/products/:sku/classification
Sets (201) or replaces (200) the handling classification of a
registered product. The request body is the same as inventory-storage's
former PUT /products/{sku}/classification (ADR 0003). handlingTags
is a non-empty, duplicate-free set from the closed enum;
temperatureClass is required if and only if TemperatureSensitive is
present; dotHazardClass is optional and only allowed with Hazmat.
An identical classification returns 200 and changes nothing.
Request
Responses
- 200
- 201
- 400
- 404
- 409
- 500
An existing classification was replaced (or was already identical).
The product had no classification; it has one now.
The classification breaks a rule of the closed taxonomy (inventory-storage ADR 0009/0010 rules, unchanged).
The SKU is not registered.
Another request changed the product between this request's read and write; re-fetch and retry.
Unexpected server error.