Library / Code, Git & Developer Tools
Code, Git & Developer Tools
Set default error workflow on all n8n workflows via n8n API
Runs nightly or on demand to assign a default error workflow to every workflow in an n8n instance through the API, preserving other settings and throttling updates.
What it does
## TEMPLATE - Set a default error workflow on all workflows via the n8n API ### How it works This workflow runs nightly or manually to apply a default error workflow setting across workflows in an n8n instance. It loads configuration values, retrieves all workflows through the n8n API, splits and filters them, then loops through the selected workflows and updates each one while preserving its other settings. A short wait throttles API updates before the loop continues until all workflows are processed. ### Setup steps - Configure the n8n API credentials used by the HTTP Request nodes so they can read and update workflows. - In the Configuration node, set n8n_base_url to your n8n instance URL and error_workflow_id to the workflow that should become the default error workflow. - Adjust only_fill_empty if updates should only apply to workflows that do not already have an error workflow configured. - Set exclusion_tag if certain workflows should be skipped based on a tag. ### Customization You can change the schedule time, filtering rules, exclusion tag, or throttle delay to match your instance size and API rate limits.
The steps
- Daily Trigger at 1AM
- Manual Workflow Trigger
- Set Workflow Configurations
- Fetch Paginated Workflows
- Split Workflow Data
- Filter Workflows by Conditions
- Batch Process Workflows
- Update Error Workflow Settings
- Wait 0.2 Seconds
- Complete Workflow Processing
Similar automations
Code, Git & Developer ToolsSet a Default Error Workflow on All n8n Workflows6 stepsCode, Git & Developer ToolsSet a Default Error Workflow on Tagged n8n Workflows7 stepsCustomer Support & HelpdeskReset All Zammad Roles to Default Values30 stepsCustomer Support & HelpdeskReset All Zammad Roles to Default Values10 steps