Update agent workflow binding¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region.
Update the bound workflow, node, template or input and output mapping.
PATCH $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/agent-workflow-bindings/{binding_id}
Request body¶
Replace $WORKSPACE_ID, $BINDING_ID, $CLOUDSIGMA_API_KEY in the example with actual values.
curl -X PATCH "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/agent-workflow-bindings/$BINDING_ID" -H "X-API-Key: $CLOUDSIGMA_API_KEY" -H "X-Workspace-ID: $WORKSPACE_ID" -H 'Content-Type: application/json' -d '{
"input_mapping": {
"document": "$.content"
}
}'
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
The workspace ID to which it belongs. |
|
string |
Yes |
Binding ID. |
Request body
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string or null |
No |
workflow ID. |
|
string or null |
No |
workflow version ID. |
|
string or null |
No |
workflow node ID. |
|
string or null |
No |
Agent task template ID. |
|
object or null |
No |
Enter the mapping. |
|
object or null |
No |
Output mapping. |
|
object or null |
No |
Failure handling mapping. |
|
string or null |
No |
Binding status. |
|
object or null |
No |
Tag key-value pairs. |
|
object or null |
No |
Annotation key-value pairs. |
If omitted or filled in, the mapping and label of null retain the original values, and {} is replaced with an empty object.
Empty status is reset to active. Even if the update body is empty, version will be added. This interface does not accept older version comparison parameters.
Successful response¶
{
"code": 0,
"data": {
"id": "binding_01",
"workspace_id": "",
"workflow_id": "",
"node_id": "root.prepare",
"agent_task_template_id": "",
"input_mapping": {
"document": "$.content"
},
"status": "active",
"version": 0,
"created_at": "2026-08-21T07:00:00Z",
"updated_at": "2026-08-21T07:00:00Z"
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
Binding ID. |
|
string |
The workspace ID to which it belongs. |
|
string |
workflow ID. |
|
string |
workflow version ID. |
|
string |
Full node path. |
|
string |
Agent task template ID. |
|
object |
Updated input mapping. |
|
object |
Output mapping. |
|
object |
Failed mapping. |
|
string |
status. Values: |
|
integer |
version. |
|
object |
Tag mapping. |
|
object |
Annotation mapping. |
|
string |
Creator. |
|
string |
Last updated by. |
|
string |
Creation time. RFC 3339 time. |
|
string |
Update time. RFC 3339 time. |
Error response¶
{
"code": 5,
"message": "agent workflow binding not found"
}
Common HTTP errors
HTTP status code |
error code |
Description |
|---|---|---|
|
|
Common reasons: The request body is invalid. Recommended Action: Check the fields to be updated. |
|
|
Common cause: The binding does not exist. Recommended Action: Check the binding ID. |