Archive automation tasks¶
Archiving automation tasks. The interface does not physically delete the task, but instead sets its status to archived.
DELETE $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/agent-automation-tasks/{automation_task_id}
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 to confirm the current status of the task and obtain the task ID. Prepare a personal access token and target workspace ID that can access the target workspace.
Request parameters¶
Replace $WORKSPACE_ID, $TASK_ID, $CLOUDSIGMA_API_KEY in the example with actual values.
curl -X DELETE "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/agent-automation-tasks/$TASK_ID" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
workspace ID. |
|
string |
Yes |
Automation task ID. |
Successful response¶
{
"code": 0,
"data": {
"id": "task_01",
"workspace_id": "ws_01",
"agent_workspace_id": "",
"name": "",
"agent_id": "",
"instruction_text": "",
"trigger": {
"mode": "cron"
},
"status": "archived",
"version": 3,
"execution": {
"type": "agent",
"system_flow_id": ""
},
"created_at": "2026-08-21T07:00:00Z",
"updated_at": "2026-08-21T07:00:00Z"
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
Automation task ID and belonging workspace ID. |
|
string |
Automation task ID and belonging workspace ID. |
|
string |
agent source workspace. Current workspace or system, not limited when filtering is omitted. |
|
string |
Name. |
|
string |
Description. |
|
string |
agent ID. |
|
string |
model. |
|
integer |
Model backend ID. |
|
string |
Task instructions. |
|
object |
Trigger configuration. |
|
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. |
|
object |
Authentication policy. |
|
object |
Output convention. |
|
string |
archived on success. Values: |
|
integer |
Archived version of the task. |
|
string |
Next trigger time. RFC 3339 time. |
|
object |
Summary of API calls. |
|
object |
Automated call configuration. |
|
string |
HTTP method. |
|
string |
path. |
|
object |
Request body example. |
|
string |
Service name. |
|
object or null |
content. |
|
object |
Summary of recent runs. |
|
string |
Run ID. |
|
string |
status. Values: |
|
string |
Trigger type. Values: |
|
integer |
Automated task version. |
|
string |
Output verification status. |
|
string |
Creation time. |
|
string |
Update time. |
|
string |
Completion time. |
|
string |
error code. |
|
string |
error message. |
|
object |
Tag mapping. |
|
object |
Annotation mapping. |
|
object |
Execute configuration. |
|
string |
type. Value: |
|
string |
System process ID. |
|
object or null |
Parameter definition. |
|
array of object |
Planning steps. |
|
string |
logo. |
|
string |
Worker ID. |
|
string |
Work item ID. |
|
string |
operation. |
|
string |
Number of repetitions. |
|
object or null |
Parameter definition. |
|
string |
Creation time. RFC 3339 time. |
|
string |
Archive time, using RFC 3339 format. RFC 3339 time. |
If you need to retain the running results before archiving, please record the run ID that needs to be retained and query the corresponding running details or results.
Error response¶
{
"code": 3,
"message": "<错误信息>"
}
Common HTTP errors
HTTP status code |
error code |
Description |
|---|---|---|
|
|
The path parameter is invalid, or the current status of the task cannot be archived. Recommendation: Check the task ID and current status. |
|
|
Valid identity credentials are missing. Recommendation: Check the API Key. |
|
|
The automated task does not exist. Suggestion: Check the task list first. |
|
|
The task status conflicts with the archive operation. Suggestion: Refresh the task details before performing the operation. |
|
|
The automated task service is unavailable. Suggestion: Check the current status first. Do not automatically resubmit. |