Activate and deactivate workflows on schedule using native n8n API — Workflow n8n
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
Aperçu du workflow
Comment ça fonctionne
- 1
Déclencheur
Le workflow démarre avec un déclencheur planifié, s'exécutant selon un planning défini.
- 2
Traitement
Les données transitent par 7 nœuds, connecting merge, n8n, scheduletrigger.
- 3
Sortie
Le workflow termine son automatisation et livre le résultat à la destination configurée.
Comment importer ce workflow
- 1Cliquez sur le bouton Télécharger JSON à droite pour enregistrer le fichier du workflow.
- 2Ouvrez votre instance n8n. Accédez à Workflows → Nouveau → Importer depuis un fichier.
- 3Sélectionnez le fichier
activate-and-deactivate-workflows-on-schedule-using-native-n8n-apitéléchargé et cliquez sur Importer. - 4Configurez les identifiants pour chaque nœud de service (clés API, OAuth, etc.).
- 5Cliquez sur Tester le workflow pour vérifier que tout fonctionne, puis activez-le.
Ou collez directement dans n8n → Importer depuis JSON :
Intégrations
Créé par
Olek
@olek
Tags
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 →