Execute one command

Executes a command from the published DomainConfig. Use the generated app OpenAPI document for the concrete request schema, required business fields, and response event types.

Authentication

AuthorizationBearer

Tenant/app API key or OAuth/JWT bearer token.

Path parameters

commandTypestringRequired
Command name from DomainConfig.commands.

Headers

X-CES-Workspace-IDstringOptionalformat: "^ws_[A-Za-z0-9_-]+$"
Optional Workspace runtime selector header. If supplied with workspaceId, both values must match.

Query parameters

workspaceIdstringOptionalformat: "^ws_[A-Za-z0-9_-]+$"

Optional Workspace runtime selector for preview or validation calls. If supplied with X-CES-Workspace-ID, both values must match.

Request

This endpoint expects a map from strings to any.

Response

Command executed on an existing scope
successboolean
commandstring
eventsEmittedinteger>=0
eventslist of objects
scopeKeystring
warningslist of strings
policyErrorslist of maps from strings to any

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error