delete https://example.com/v1/operations//lines
Removes one or more variants from a specific Operation.
Feature flag
- Requires
OPERATIONSto be active.
Access control
- OPERATOR: can remove variants from any Operation (no store constraint).
- ACCOUNT: can remove variants only from Operations they own (
ownerId = customerUserId) and if they have theOPERATIONS_UPDATEright.
Store scoping
- Effective store is the
dj-storeheader if provided, otherwise the tenant default store. - ACCOUNT must be attached to the effective store; otherwise 403.
Constraints
- Only Operations in
DRAFTstatus accept line removals. - Request body must be a non-empty array of external variant identifiers (strings).
- Unknown
variantIdvalues are ignored; processing continues. - If none of the provided
variantIdvalues are valid for the Operation, the API returns 404.
