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

Moyen complexité Planifié7 nœuds💎 Other👁 919 vuespar Olek

Aperçu

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

Nœuds utilisés

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

Aperçu du workflow

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

Comment ça fonctionne

  1. 1

    Déclencheur

    Le workflow démarre avec un déclencheur planifié, s'exécutant selon un planning défini.

  2. 2

    Traitement

    Les données transitent par 7 nœuds, connecting merge, n8n, scheduletrigger.

  3. 3

    Sortie

    Le workflow termine son automatisation et livre le résultat à la destination configurée.

Détails des nœuds (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

Comment importer ce workflow

  1. 1Cliquez sur le bouton Télécharger JSON à droite pour enregistrer le fichier du workflow.
  2. 2Ouvrez votre instance n8n. Accédez à Workflows → Nouveau → Importer depuis un fichier.
  3. 3Sélectionnez le fichier activate-and-deactivate-workflows-on-schedule-using-native-n8n-api téléchargé et cliquez sur Importer.
  4. 4Configurez les identifiants pour chaque nœud de service (clés API, OAuth, etc.).
  5. 5Cliquez sur Tester le workflow pour vérifier que tout fonctionne, puis activez-le.

Ou collez directement dans n8n → Importer depuis JSON :

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

Intégrations

mergen8nscheduletriggerset

Obtenir ce workflow

Téléchargez et importez en un clic

Télécharger JSONVoir sur n8n.io
Nœuds7
Complexitémedium
Déclencheurscheduled
Vues919
CatégorieOther

Créé par

Olek

Olek

@olek

Tags

mergen8nscheduletriggerset

Nouveau sur n8n ?

n8n est un outil d'automatisation de workflows gratuit et open-source. Hébergez-le vous-même ou utilisez la version cloud.

Obtenir n8n gratuitement →