ADM-OPERATION-351 - Remove accounts from a PRIVATE Operation

Remove one or multiple accounts from a PRIVATE Operation.

Feature flag

  • Available only when OPERATIONS is ON (otherwise 403).

Access control

  • OPERATOR: can remove accounts from any PRIVATE Operation in DRAFT.
  • ACCOUNT: must have right OPERATIONS_UPDATE, be the owner of the Operation, and be attached to the effective store (dj-store if provided, otherwise tenant default store).

Business rules

  • Only PRIVATE Operations are eligible.
  • Only DRAFT Operations are modifiable.
  • Account IDs provided must already be linked to the Operation.
  • Unknown or not-linked accountIds are ignored.
  • If none of the provided accountIds are valid, an error is returned.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Operation identifier to remove accounts

Body Params
accountIds
array of strings
required

List of accountIds to unlink from the Operation.

accountIds*
Headers
string
enum
required

Specifies the client type making the request.

  • OPERATOR: Platform operator user.

  • ACCOUNT: Customer account user.

  • SUPPLIER: Supplier managing orders.

Allowed:
string
required

API key required for authentication. Must be valid and linked to the requesting user.

string

(Optional) Store ID in multi-store environments.

string

(Optional) Store view ID in multi-store environments.

Responses
204

Accounts successfully removed from the Operation.

400

Invalid request payload or wrong format.

401

Unauthorized. Missing or invalid authentication token.

403

Forbidden action.

  • Permission denied. Only OPERATOR or ACCOUNT clients are allowed to call this endpoint.
  • Permission denied. Caller is not allowed to modify this Operation (missing OPERATIONS_UPDATE right, not owner, or not attached to store).
  • Only DRAFT operations can be modified.
  • Operation type must be PRIVATE to manage account associations.
  • Operation feature is disabled.
404

Operation or accounts not found.

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here!