Start automated task running¶
Manually start an enabled scheduled automation task and create a run record.
POST $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/agent-automation-tasks/{automation_task_id}/runs
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. First Query automation task details confirm that the task is enabled and obtain the task ID. Prepare a personal access token and target workspace ID that can access the target workspace.
Select the active state and the cron task of the deployed workflow.
Request body¶
Replace $WORKSPACE_ID, $TASK_ID, $CLOUDSIGMA_API_KEY in the example with actual values.
curl -X POST "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/agent-automation-tasks/$TASK_ID/runs" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H 'Content-Type: application/json' \
-d '{
"payload": {
"date": "2026-08-18"
}
}'
payload must conform to the task’s trigger input schema. idempotency_key is not supported on this interface.
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
workspace ID. |
|
string |
Yes |
Automation task ID. |
Request body
Field |
Type |
Required |
Description |
|---|---|---|---|
|
object or null |
No |
Input data for this run. |
|
object or null |
No |
Additional context for this trigger. |
Successful response¶
{
"code": 0,
"data": {
"id": "run_01",
"workspace_id": "ws_01",
"automation_task_id": "task_01",
"automation_task_version": 1,
"trigger_type": "manual",
"trigger_config_snapshot": {
"mode": "cron"
},
"status": "queued",
"created_at": "2026-08-21T07:00:00Z",
"updated_at": "2026-08-21T07:00:00Z"
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
New run, workspace and automation task identifiers. |
|
string |
New run, workspace and automation task identifiers. |
|
string |
New run, workspace and automation task identifiers. |
|
integer |
The task version used for this run. |
|
string |
Fixed trigger type and configuration snapshot for manual triggering. Values: |
|
object |
Fixed trigger type and configuration snapshot for manual triggering. |
|
string |
processing mode. Values: |
|
string |
Cron expressions. |
|
string |
How to handle results. |
|
string |
Service name. |
|
object or null |
Input field structure. |
|
object or null |
Configuration. |
|
string |
Initial operating status. Please refer to the status of subsequent checks. Values: |
|
string |
Final text. |
|
object or null |
Structured output. |
|
string |
Output verification status. Values: |
|
string |
Output verification errors. |
|
array of object |
Product reference. |
|
string |
type. |
|
string |
logo. |
|
string |
File URI. |
|
string |
Name. |
|
string |
Media type. |
|
object or null |
Extended metadata. |
|
object or null |
error message. |
|
string |
Start time. RFC 3339 time. |
|
string |
Completion time. RFC 3339 time. |
|
string |
Creation and last update times, using RFC 3339 format. RFC 3339 time. |
|
string |
Creation and last update times, using RFC 3339 format. RFC 3339 time. |
Record data.id. Running a call does not mean it is finished. Use this ID Query the automation task running details to track the status. After entering the final state Query the automation task running result.
Error response¶
When the task already has cron with status queued, running, input_required or pending_approval running, HTTP 409, code=4 is returned.
Before submitting the workflow, running snapshots, queued or failed records, events, and audit records may have been created. After failure, first query the running record and task last_run_summary. When HTTP 201 is returned, the running status is not necessarily queued, and it cannot be judged that the operation has been completed based on this.
{
"code": 2,
"message": "<错误信息>"
}
Common HTTP errors
HTTP status code |
error code |
Description |
|---|---|---|
|
|
The request body is invalid, the task is not a manually runnable enabled scheduled task, or the input does not meet the task constraints. Recommendation: Check the task status, trigger method and input. |
|
|
Valid identity credentials are missing. Recommendation: Check the API Key. |
|
|
The current identity has not been verified for workspace access and valid roles. Recommendation: Use an identity and a valid role with workspace access. |
|
|
The automated task does not exist. Suggestion: Check the task details first. |
|
|
The task has conflicting activities running, or the task status conflicts. Suggestion: Wait for the existing run to end or refresh the task status before trying again. |
|
|
Running executors, input snapshots, or workflow submission services are temporarily unavailable. Suggestion: Check the current status first. Do not automatically resubmit. |