Reactivate nightly maintenance workflows with Data Tables and the n8n API
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - If
n8n-nodes-base.if - Data table
n8n-nodes-base.dataTable - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches
What it does
Quick overview This workflow runs every morning and reads a Data Table log of workflows previously disabled for maintenance, then reactivates each one via the n8n REST API and clears the log so the next maintenance cycle starts clean. How it works 1. Runs every day at 08:45 on a Schedule trigger. 2. Sets the n8n instance base URL used to build API requests. 3. Reads all rows from an n8n Data Table that contains the workflow IDs to restore. 4. Iterates through the logged workflow IDs and calls the n8n REST API to activate each workflow. 5. After the loop completes, deletes all rows from the Data Table to reset the maintenance log. Setup 1. Create or select the n8n Data Table used as the maintenance log and ensure it contains a workflowid column (and any other fields you want, such as name and timestamp). 2. Add an n8n API credential (Settings → n8n API) and select it for the HTTP Request that activates workflows. 3. Update the baseurl value to your n8n instance URL and select the correct Data Table ID in both the read and delete steps. 4. Ensure the companion “Maintenance ON” workflow writes deactivated workflow IDs into the same Data Table and does not disable this workflow.