AutomationFlowsGeneral › Create, update and get a case in TheHive

Create, update and get a case in TheHive

Create, update and get a case in TheHive. Uses manualTrigger, theHive. Event-driven trigger; 4 nodes.

Event trigger★★☆☆☆ complexity4 nodesThe Hive
General Trigger: Event Nodes: 4 Complexity: ★★☆☆☆

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "159",
  "name": "Create, update and get a case in TheHive",
  "nodes": [
    {
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        270,
        340
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "name": "TheHive",
      "type": "n8n-nodes-base.theHive",
      "position": [
        470,
        340
      ],
      "parameters": {
        "tags": "n8n, theHive",
        "owner": "Harshil",
        "title": "n8n",
        "options": {},
        "resource": "case",
        "severity": 1,
        "operation": "create",
        "startDate": "2020-12-03T10:08:14.000Z",
        "description": "Creating a case from n8n"
      },
      "credentials": {
        "theHiveApi": "<your credential>"
      },
      "typeVersion": 1
    },
    {
      "name": "TheHive1",
      "type": "n8n-nodes-base.theHive",
      "position": [
        670,
        340
      ],
      "parameters": {
        "id": "={{$node[\"TheHive\"].json[\"id\"]}}",
        "resource": "case",
        "operation": "update",
        "updateFields": {
          "severity": 3
        }
      },
      "credentials": {
        "theHiveApi": "<your credential>"
      },
      "typeVersion": 1
    },
    {
      "name": "TheHive2",
      "type": "n8n-nodes-base.theHive",
      "position": [
        870,
        340
      ],
      "parameters": {
        "id": "={{$node[\"TheHive\"].json[\"id\"]}}",
        "resource": "case",
        "operation": "get"
      },
      "credentials": {
        "theHiveApi": "<your credential>"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {},
  "connections": {
    "TheHive": {
      "main": [
        [
          {
            "node": "TheHive1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "TheHive1": {
      "main": [
        [
          {
            "node": "TheHive2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On clicking 'execute'": {
      "main": [
        [
          {
            "node": "TheHive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

About this workflow

Create, update and get a case in TheHive. Uses manualTrigger, theHive. Event-driven trigger; 4 nodes.

Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →

More General workflows → · Browse all categories →