put
https://example.com/v1/operations//accounts
Adds one or more accounts to a PRIVATE Operation to control visibility.
Feature flag
- Requires
OPERATIONS_ENABLEDto be active.
Access control
- OPERATOR: can add any account to any PRIVATE Operation.
- ACCOUNT (FOC): can add accounts only on Operations they own (ownerId = customerUserId) and if they have the
OPERATIONS_ADD_ACCOUNTSpermission.
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
DRAFTOperations are editable. - Only
PRIVATEOperations accept account associations. - Request body must be a non-empty array of
accountExternalIdstrings. - Already linked accounts are ignored.
- Unknown accounts are ignored.
- If none of the provided IDs are valid, the API returns 404.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
204Accounts successfully processed
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.
— Unexpected value for field dj-client, must be one of [OPERATOR, ACCOUNT].
— Permission denied. Caller is not allowed to modify this Operation (missing OPERATIONS_ADD_ACCOUNTS right, not owner, or not attached to store).
— Only DRAFT operations can be updated.
— Operation type must be PRIVATE to manage account associations.
— Feature Flag disabled for this feature.
404Not found.
- Operation not found
- None of the provided accountExternalIds exist for this Operation.
500Unexpected server error.
