Update a workflow on a live n8n instance (full replace)
n8n_update_workflowReplace an n8n workflow's entire definition. Fetch the workflow, edit it, and send the full updated version back, as the API only supports full replacement.
Instructions
Replace a workflow's definition entirely (n8n's public API only supports full-workflow PUT, not partial/diff updates). Fetch it first with n8n_get_workflow, edit, then send the whole thing back.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"workflow": "<workflow>"
},
"name": "n8n_update_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| workflow | Yes |