ADM-OPERATION-250 - Update variant quantities for an Operation

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 the OPERATIONS_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 when maxQuantity is provided.
  • recommendedQuantity must be between minQuantity and maxQuantity when maxQuantity is provided; otherwise recommendedQuantityminQuantity.
  • 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.

Language
Click Try It! to start a request and see the response here!