Update inventory count (DRAFT only)
PUT/api/v2/inventory-counts/:id
Replaces the editable fields of a DRAFT inventory count. The warehouseId cannot be changed; if lines is supplied, the line set is fully replaced and the calculated quantities are recomputed against the current stock. Send the If-Match header with the current ETag for optimistic concurrency control.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
Inventory count updated
Validation error ÔÇö the request body or a query parameter failed constraint validation. The response payload includes a errors array with field-level details.
Missing or invalid JWT (Bearer token).
Authenticated user is missing the EDITAR_INVENTARIOS permission
Inventory count not found
Version conflict ÔÇö the resource was modified by another user since the version supplied in If-Match was issued. Also returned when the count is already FINALIZED.
Unexpected server error. Includes legacy WAR failures that are not classified as 502 / 503 / 504.