patch https://example.com/v1/operations/
Allows changing the status of an Operation between ACTIVE and INACTIVE.
Feature flag
- Requires
OPERATIONSto be active.
Access control
- OPERATOR: always allowed.
- ACCOUNT (FOC): allowed only if the user is the creator (ownerId = customerUserId) and has the
OPERATIONS_UPDATE_STATUSright.
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.
Allowed transitions
DRAFT → ACTIVEDRAFT → INACTIVEACTIVE → INACTIVEINACTIVE → ACTIVE
Forbidden transitions
- Cannot revert to
DRAFTonce changed.
