Update Product Packaging Requirements
PUT/api/v2/products/:product/packaging-requirements
Replace a product's packaging requirements. Send the whole list; an empty list removes them. They are not a recipe: the product stays a bought product.
products:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: a Personal Access Token in the Authorization header with the products scope. Requires permission to edit products.
Body:
- lines (array, required, up to 50; may be empty)
- lines.*.product_id (integer, required): the packaging. Not the product itself, a bundle, a matrix product, a serial-tracked product, or listed twice.
- lines.*.quantity (number, required, >0, max 1000000): per unit of the product.
- lines.*.uom_id (integer, optional): unit of the quantity; default the packaging's stock unit. Needs a conversion to it.
- lines.*.expected_scrap_percent (number, optional, 0-100): used on top of the quantity.
- lines.*.notes (string, optional, max 1000)
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Content
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.