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