Overview
Update an entire workflow by replacing all nodes and connections. This operation requires sending the complete workflow structure.Endpoint
Request Parameters
Workflow ID to update
New workflow name (optional)
Complete array of workflow nodes (required if modifying structure)
Must include ALL nodes, not just changed ones. See Create Workflow for node structure.
Complete connections object (required if modifying structure)
Must include ALL connections, not just new ones.
Workflow settings to update
Create version backup before updating
Human-readable description of the updateExample:
"Add error handling to API calls"Response
Operation success status
Updated workflow information
Success message with verification guidance
Error Codes
Causes:
- Invalid workflow structure
- Missing required fields
- Duplicate node names
- Broken connections
- Invalid node type format
validate_workflow before updatingCause: Workflow ID does not existResolution: Verify ID with
n8n_list_workflowsCause: Workflow was modified by another user/processResolution: Fetch latest version and retry
Examples
Response Example
When to Use Full Update vs Partial Update
Use Full Update
- Renaming workflow
- Updating settings only
- Replacing entire workflow structure
- Importing from template
Use Partial Update
- Adding/removing nodes
- Updating node parameters
- Modifying connections
- Moving nodes
- Enabling/disabling nodes
- 90% of update operations
Versioning and Rollback
Full updates create automatic backups (unless
createBackup: false). Access version history:Best Practices
Related Endpoints
- Update Partial Workflow - Incremental updates (recommended)
- Get Workflow - Fetch current workflow
- Validate Workflow - Validate before updating
- Workflow Versions - Version management