{
  "name": "n8n",
  "display_name": "n8n",
  "description": "Handle events and perform actions on your n8n instance",
  "group": [
    "transform"
  ],
  "versions": [
    1.0
  ],
  "inputs": 1,
  "outputs": 1,
  "credentials": [
    {
      "name": "n8nApi",
      "required": true
    }
  ],
  "properties": [
    {
      "name": "resource",
      "display_name": "Resource",
      "kind": "options",
      "required": false,
      "default": "workflow"
    }
  ],
  "source_path": "/home/mcochran/n8n/packages/nodes-base/nodes/N8n/N8n.node.ts",
  "routing": {
    "base_url": "={{ $credentials.baseUrl.replace(new RegExp(",
    "auth_headers": [
      [
        "X-N8N-API-KEY",
        "{{apiKey}}"
      ]
    ],
    "auth_query": [],
    "credential_name": "n8nApi",
    "operations": [
      {
        "value": "get",
        "method": "GET",
        "url": "/executions/{{ $parameter.executionId }}",
        "body": ""
      },
      {
        "value": "getAll",
        "method": "GET",
        "url": "/executions",
        "body": ""
      },
      {
        "value": "delete",
        "method": "DELETE",
        "url": "/executions/{{ $parameter.executionId }}",
        "body": ""
      },
      {
        "value": "create",
        "method": "POST",
        "url": "/workflows",
        "body": ""
      },
      {
        "value": "update",
        "method": "POST",
        "url": "/workflows/{{ $value }}/activate",
        "body": ""
      },
      {
        "value": "getSchema",
        "method": "GET",
        "url": "/credentials/schema/{{ $parameter.credentialTypeName }}",
        "body": ""
      },
      {
        "value": "generate",
        "method": "POST",
        "url": "/audit",
        "body": ""
      }
    ],
    "sends": [
      {
        "param_name": "filters",
        "send_type": "query",
        "dest_key": "workflowId",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "execution"
        ]
      },
      {
        "param_name": "Waiting",
        "send_type": "query",
        "dest_key": "status",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "execution"
        ]
      },
      {
        "param_name": "activeWorkflows",
        "send_type": "query",
        "dest_key": "includeData",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "execution"
        ]
      },
      {
        "param_name": "versionId",
        "send_type": "body",
        "dest_key": "versionId",
        "applies_to_operations": [
          "activate"
        ],
        "applies_to_resources": [
          "workflow"
        ]
      },
      {
        "param_name": "name",
        "send_type": "body",
        "dest_key": "name",
        "applies_to_operations": [
          "activate"
        ],
        "applies_to_resources": [
          "workflow"
        ]
      },
      {
        "param_name": "description",
        "send_type": "body",
        "dest_key": "description",
        "applies_to_operations": [
          "activate"
        ],
        "applies_to_resources": [
          "workflow"
        ]
      },
      {
        "param_name": "tags",
        "send_type": "query",
        "dest_key": "tags",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "workflow"
        ]
      }
    ]
  }
}