Update Line Item Count
PUT/v1/api/quality/inspection/shipment/line-item-count
Directly corrects one line item's count mid-inspection — not tied to any issue, unlike
the wrong_counting resolve action (PATCH /shipment-issue/{issue_id}/resolve), which
requires an existing open shortage issue. Pushes the same authoritative
products-override MQTT signal wrong_counting uses (no detection backs this — it's an
override, not a delta).
If the corrected count clears an open overage or shortage issue already on this line
item (count now within/meeting expected_quantity), that issue is auto-resolved as a
side effect — the operator doesn't have to separately go close it after already fixing
the count.
Also sets the line item's is_edited flag to true.
Auth Required
Required Permissions:
quality.inspection.shipment:execute("Quality Inspection Shipment Execute")
Request
Responses
- 200
- 400
- 401
- 403
- 500
Line item count updated
Bad Request. The request was invalid or cannot be otherwise served.
Unauthorized. User is not authenticated or session is invalid.
Forbidden. User does not have the required permissions.
Internal Server Error