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.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
204Operation status successfully updated (no content returned)
400Invalid request.
- Invalid transition (cannot revert to DRAFT)
- Invalid enum value for
status
401Unauthorized. Missing or invalid authentication token.
403Forbidden.
- Unauthorized client value (unexpected
dj-client) - Access denied (missing
OPERATIONS_UPDATE_STATUS, not owner, or not attached to the effective store) - Feature disabled
404Operation not found.
