Templates / Activate and deactivate workflows on schedule using native n8n API

Activate and deactivate workflows on schedule using native n8n API

Ready for 3.0

by Olek · 1,838 views · created 2025-03-20 · DevOps

Ready 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 7 nodes and runs on a schedule (cron 0 8 * * *) (plus 1 other trigger). It uses only n8n's built-in nodes.

How it runs

Trigger: On a schedule (cron 0 8 * * *) (plus 1 other trigger).

  1. Workflow ID (Edit Fields (Set)): sets 1 field: workflowID
  2. Merge: merges the data from its input branches
  3. Merge: merges the data from its input branches
  4. n8n: activate
  5. n8n: deactivate

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (4)

From the author

How it works This workflow will activate and deactivate a selected other workflow on schedule. > ⚠️ Warning! > This approach won't work for trial users as it requires n8n API that is not available to trial users. > See https://docs.n8n.io/api/ for…

Excerpt from Olek's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.