apply_ops
Apply multiple graph operations atomically to a workflow, enabling batch updates to nodes, connections, parameters, and properties in a single transaction.
Instructions
Apply multiple graph operations atomically to a workflow
Input Schema
Name | Required | Description | Default |
---|---|---|---|
ops | Yes | Array of operations to apply | |
workflowId | Yes | The workflow ID |
Input Schema (JSON Schema)
{
"properties": {
"ops": {
"description": "Array of operations to apply",
"items": {
"properties": {
"type": {
"description": "The type of operation",
"enum": [
"addNode",
"deleteNode",
"updateNode",
"setParam",
"unsetParam",
"connect",
"disconnect",
"setWorkflowProperty",
"addTag",
"removeTag"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"type": "array"
},
"workflowId": {
"description": "The workflow ID",
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
]
}
},
"required": [
"workflowId",
"ops"
],
"type": "object"
}