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.

HTTP
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.

Shell
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

workspace_id

string

Yes

The workspace ID to which it belongs.

binding_id

string

Yes

Binding ID.

Request body

Field

Type

Required

Description

workflow_id

string or null

No

workflow ID.

workflow_version_id

string or null

No

workflow version ID.

node_id

string or null

No

workflow node ID.

agent_task_template_id

string or null

No

Agent task template ID.

input_mapping

object or null

No

Enter the mapping.

output_mapping

object or null

No

Output mapping.

failure_mapping

object or null

No

Failure handling mapping.

status

string or null

No

Binding status.

labels

object or null

No

Tag key-value pairs.

annotations

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

JSON
{
  "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

data.id

string

Binding ID.

data.workspace_id

string

The workspace ID to which it belongs.

data.workflow_id

string

workflow ID.

data.workflow_version_id

string

workflow version ID.

data.node_id

string

Full node path.

data.agent_task_template_id

string

Agent task template ID.

data.input_mapping

object

Updated input mapping.

data.output_mapping

object

Output mapping.

data.failure_mapping

object

Failed mapping.

data.status

string

status. Values: active, disabled, archived.

data.version

integer

version.

data.labels

object

Tag mapping.

data.annotations

object

Annotation mapping.

data.created_by

string

Creator.

data.updated_by

string

Last updated by.

data.created_at

string

Creation time. RFC 3339 time.

data.updated_at

string

Update time. RFC 3339 time.

Error response

JSON
{
  "code": 5,
  "message": "agent workflow binding not found"
}

Common HTTP errors

HTTP status code

error code

Description

400

2

Common reasons: The request body is invalid. Recommended Action: Check the fields to be updated.

404

5

Common cause: The binding does not exist. Recommended Action: Check the binding ID.

Last updated on