Submit Control Operation

POST/enterprise/v1/operations

action, parameters and idempotencyKey are required. idempotencyKey is at most 128 characters. This route submits for review; HTTP 202/code 200 does not mean execution succeeded. It requires an approval-enabled enterprise. See the approvals guide for supported actions and parameter shapes.

Authentication

Control key with every scope required by the action. Model-policy actions require MANAGEMENT.

Authorization: Bearer <CONTROL_KEY>

Approval and retry guide

Request body

actionstringrequired

Supported action name / 支持的 action 名称

parametersobjectrequired

Action-specific parameters / 对应 action 的参数

idempotencyKeystringrequired

Nonblank; max 128 / 非空,最长 128

Fields use camelCase. Required and optional fields are described above.

JSON
1{
2  "action": "set_sub_account_status",
3  "parameters": {
4    "subAccountId": "1000000001",
5    "status": "suspended"
6  },
7  "idempotencyKey": "member-pause-001"
8}

Response

HTTP 202; code: 200. Values below are illustrative; fields use camelCase.

codeinteger

200

dataobject | null
data.operationIdstring
data.actionstring
data.statusstring
data.executedboolean
data.digeststring
data.parametersobject
data.beforeobject
data.resultstring | null
data.failureCodestring | null
data.approvalPathstring
data.createdAtstring
data.expiresAtstring

Errors

Check both HTTP status and code; on failure inspect serviceCode, msg and traceId. Invalid credentials receive no data; missing scopes return API_KEY_SCOPE_DENIED. Cross-tenant resources are inaccessible. Acceptance or pending approval does not mean business completion.

Request

Shell
1curl -X POST "https://api.token360.ai/enterprise/v1/operations" \
2  -H "Authorization: Bearer $CONTROL_KEY" \
3  -H "Content-Type: application/json" \
4  --data '{"action": "set_sub_account_status", "parameters": {"subAccountId": "1000000001", "status": "suspended"}, "idempotencyKey": "member-pause-001"}'

Response

JSON
1{
2  "code": 200,
3  "msg": "success",
4  "data": {
5    "operationId": "00000000-0000-4000-8000-000000000001",
6    "action": "set_sub_account_status",
7    "status": "pending_approval",
8    "executed": false,
9    "digest": "<DIGEST>",
10    "parameters": {
11      "subAccountId": "1000000001",
12      "status": "suspended"
13    },
14    "before": {},
15    "result": null,
16    "failureCode": null,
17    "approvalPath": "<SERVER_RETURNED_APPROVAL_PATH>",
18    "createdAt": "2026-11-03T00:00:00Z",
19    "expiresAt": "2026-11-03T00:15:00Z"
20  }
21}
Was this page helpful?
Submit Control Operation · Token360