Activate and deactivate workflows on schedule using native n8n API — n8n Workflow

Medium complexity Scheduled7 nodes💎 Other👁 919 viewsby Olek

Overview

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 details.

Set up steps Adjust activation/deactivation schedule per your needs. Custom (cron) interval is a recommended approach. Set targeted Workflow ID. You will find it in the URL of the workflow you want to manage.

Set n8n API credential

Nodes used

n8n DeactivateWorkflow IDMerge in Workflow ID for activationDeactivate at 20:00 dailySticky Note5

Workflow Preview

Set targeted Workflow ID
You will find it in the URL of the workflow you want to
![img](https://community.n8n.io/uploads/default/origina
Set Activate/deactivate schedule
Custom (cron) interval is a recommended approach.
Set n8n API credentials
1. Create an API key:
https://docs.n8n.io/api/authentication/
2. Create n8n credentials using the API key
This workflow uses [n8n node](https://docs.n8n.io/integ
⚠️ Warning!
This approach won't work for trial users as it requires
See https://docs.n8n.io/api/ for details.
Scheduling workflow activity time
Your workflow wants to work normal business hours?
Maybe it is in its own right.
Activate this workflow!
N
n8n Activate
N
n8n Deactivate
W
Workflow ID
M
Merge in Workflow ID for…
M
Merge in Workflow ID for…
A
Activate at 08:00 daily
D
Deactivate at 20:00 daily
7 nodes8 edges

How it Works

  1. 1

    Trigger

    The workflow starts with a scheduled trigger, running on a defined schedule.

  2. 2

    Process

    Data flows through 7 nodes, connecting merge, n8n, scheduletrigger.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (7)

N8

n8n Deactivate

n8n

#1
WO

Workflow ID

set

#2
ME

Merge in Workflow ID for activation

merge

#3
DE

Deactivate at 20:00 daily

scheduleTrigger

#4
ST

Sticky Note5

stickyNote

#5

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows → New → Import from file.
  3. 3Select the downloaded activate-and-deactivate-workflows-on-schedule-using-native-n8n-api file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n → Import from JSON:

{ "name": "Activate and deactivate workflows on schedule using native n8n API", "nodes": [...], ...}

Integrations

mergen8nscheduletriggerset

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes7
Complexitymedium
Triggerscheduled
Views919
CategoryOther

Created by

Olek

Olek

@olek

Tags

mergen8nscheduletriggerset

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free →