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

Gemiddeld complexiteit Gepland7 knooppunten💎 Other👁 919 weergavendoor Olek

Overzicht

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

Gebruikte knooppunten

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

Workflow-voorvertoning

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

Hoe het werkt

  1. 1

    Trigger

    De workflow start met een gepland-trigger, uitgevoerd op een gedefinieerd schema.

  2. 2

    Verwerking

    Gegevens stromen door 7 knooppunten, connecting merge, n8n, scheduletrigger.

  3. 3

    Uitvoer

    De workflow voltooit zijn automatisering en levert het resultaat aan de geconfigureerde bestemming.

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

Hoe deze workflow te importeren

  1. 1Klik op de knop JSON downloaden rechts om het workflowbestand op te slaan.
  2. 2Open uw n8n-instantie. Ga naar Workflows → Nieuw → Importeren uit bestand.
  3. 3Selecteer het gedownloade bestand activate-and-deactivate-workflows-on-schedule-using-native-n8n-api en klik op Importeren.
  4. 4Stel inloggegevens in voor elk serviceknooppunt (API-sleutels, OAuth, enz.).
  5. 5Klik op Workflow testen om te controleren of alles werkt, activeer het vervolgens.

Of plak rechtstreeks in n8n → Importeren uit JSON:

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

Integraties

mergen8nscheduletriggerset

Haal deze workflow op

Download en importeer met één klik

JSON downloadenBekijken op n8n.io
Knooppunten7
Complexiteitmedium
Triggerscheduled
Weergaven919
CategorieOther

Gemaakt door

Olek

Olek

@olek

Tags

mergen8nscheduletriggerset

Nieuw bij n8n?

n8n is een gratis open-source workflow-automatiseringstool. Host het zelf of gebruik de cloudversie.

n8n gratis ophalen →