ADM-OPERATION-201 - Update Operation status (activation / deactivation)

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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Operation identifier

Body Params
string
required

New status of the Operation

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

Operation status successfully updated (no content returned)

400

Invalid request.

  • Invalid transition (cannot revert to DRAFT)
  • Invalid enum value for status
401

Unauthorized. Missing or invalid authentication token.

403

Forbidden.

  • Unauthorized client value (unexpected dj-client)
  • Access denied (missing OPERATIONS_UPDATE_STATUS, not owner, or not attached to the effective store)
  • Feature disabled
404

Operation not found.

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