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

Mittel Komplexität Geplant7 Knoten💎 Other👁 919 Aufrufevon Olek

Übersicht

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

Verwendete Knoten

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

Workflow-Vorschau

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

So funktioniert es

  1. 1

    Auslöser

    Der Workflow startet mit einem geplant-Auslöser, der nach einem definierten Zeitplan läuft.

  2. 2

    Verarbeitung

    Die Daten fließen durch 7 Knoten, connecting merge, n8n, scheduletrigger.

  3. 3

    Ausgabe

    Der Workflow schließt seine Automatisierung ab und liefert das Ergebnis an das konfigurierte Ziel.

Knotendetails (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

So importieren Sie diesen Workflow

  1. 1Klicken Sie rechts auf die Schaltfläche JSON herunterladen, um die Workflow-Datei zu speichern.
  2. 2Öffnen Sie Ihre n8n-Instanz. Gehen Sie zu Workflows → Neu → Aus Datei importieren.
  3. 3Wählen Sie die heruntergeladene Datei activate-and-deactivate-workflows-on-schedule-using-native-n8n-api und klicken Sie auf Importieren.
  4. 4Richten Sie Anmeldedaten für jeden Dienstknoten ein (API-Schlüssel, OAuth usw.).
  5. 5Klicken Sie auf Workflow testen, um zu überprüfen, ob alles funktioniert, und aktivieren Sie es dann.

Oder direkt in n8n → Aus JSON importieren einfügen:

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

Integrationen

mergen8nscheduletriggerset

Diesen Workflow holen

Herunterladen und mit einem Klick importieren

JSON herunterladenAuf n8n.io ansehen
Knoten7
Komplexitätmedium
Auslöserscheduled
Aufrufe919
KategorieOther

Erstellt von

Olek

Olek

@olek

Tags

mergen8nscheduletriggerset

Neu bei n8n?

n8n ist ein kostenloses Open-Source-Workflow-Automatisierungstool. Selbst hosten oder die Cloud-Version nutzen.

n8n kostenlos holen →