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.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
204Variants successfully removed from the Operation.
400Invalid payload.
- Request body must be a non-empty array of strings
- Wrong format for one or more items
401Unauthorized. Missing or invalid authentication token.
403Forbidden. One of the following applies:
- Unauthorized client value (unexpected
dj-client) - Permission denied (missing
OPERATIONS_UPDATE, not owner) - Store access denied (ACCOUNT not attached to effective store)
- Invalid status (only DRAFT Operations can be modified)
- Feature disabled
404Not found.
- Operation not found
- All provided variantIds are unknown for this Operation
