put https://api.djust.example.com/admin/operations//lines
Updates minQuantity
, maxQuantity
and recommendedQuantity
for one or more variants of a given Operation.
Feature flag
- Requires
OPERATIONS
to be active.
Access control
- OPERATOR: always allowed.
- ACCOUNT: allowed only if the user is the owner (
ownerId = customerUserId
) and has theOPERATIONS_UPDATE
permission.
Store scoping
- Effective store is the
dj-store
header if provided, otherwise the tenant default store. - ACCOUNT must be attached to the effective store; otherwise 403.
Scope
- Bulk update by items; only provided fields are updated per item (partial update at line level).
Validation rules
minQuantity
must be ≤maxQuantity
whenmaxQuantity
is provided.recommendedQuantity
must be betweenminQuantity
andmaxQuantity
whenmaxQuantity
is provided; otherwiserecommendedQuantity
≥minQuantity
.- All quantities must be integers ≥ 0.
Unknown variants
- Unknown
variantExternalId
values are ignored. - If none of the provided IDs are valid for this Operation, the API returns 404.