Flag a Counted Annotation as Wrong Product
POST/v1/api/quality/inspection/shipment-issue/annotation/flag-wrong-product
Manually flags an already-detected, already-counted annotation as actually the wrong product — the operator typed a sku that doesn't match any line item on the manifest, so this is a genuine off-manifest case, the same as one the pipeline would have flagged itself.
Creates an open wrong_product issue for the annotation (shipment_data_id set to
whichever line item it's currently counted against) and returns it so the caller can
resolve it through the normal wrong_product flow —
PATCH /shipment-issue/{issue_id}/resolve with keep_in_order, remove_product, or
correct_product.
If the entered sku does match a line item, use
PATCH /shipment-issue/annotation/reassign instead — that's a direct correction with no
issue involved.
annotation_id alone identifies the exact annotation (a single monotonic counter per
shipment, never reused across images/units) — shipment_id only says which shipment to
look it up in; the unit session it belongs to is resolved server-side from the
annotation's own image, not required from the caller.
Auth Required
Required Permissions:
quality.inspection.shipment:execute("Quality Inspection Shipment Execute")
Request
Responses
- 200
- 400
- 401
- 403
- 500
Wrong-product issue created
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