Activate Workflow Node

Maybe I missed out, but is there a way to activate a specific workflow by any trigger f.e webhook.
Almost like the “Workflow” Node only difference that I want to activate a workflow from disabled to “active” to run a workflow just using an interval trigger or cron Job.
Same other way around to disable a whole flow would be a great function for my usecase too.

Thank you in advance :slight_smile:

There is currently no official node for that. What you can however do is to use the the API the editor-UI uses to achieve that.

Here an example how you can active the workflow with the ID 100:

  "nodes": [
      "parameters": {
        "requestMethod": "PATCH",
        "url": "http://localhost:5678/rest/workflows/100",
        "options": {},
        "bodyParametersUi": {
          "parameter": [
              "name": "active",
              "value": "={{true}}"
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
  "connections": {}

But be aware that the way that API behaves can change in the future and so maybe break. So make sure to test whenever you upgrade n8n to a new version.