{
  "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,
      "id": "a257c78f-94d7-4b76-bfb6-678019885e45",
      "notes": "This manualTrigger node performs automated tasks as part of the workflow."
    },
    {
      "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": "hive"
      },
      "typeVersion": 1,
      "id": "8e38dc73-ec50-4db0-9e3f-cabb2c390e62",
      "notes": "This theHive node performs automated tasks as part of the workflow."
    },
    {
      "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": "hive"
      },
      "typeVersion": 1,
      "id": "fe48c9b2-ae71-465f-8117-68a77ca84ad7",
      "notes": "This theHive node performs automated tasks as part of the workflow."
    },
    {
      "name": "TheHive2",
      "type": "n8n-nodes-base.theHive",
      "position": [
        870,
        340
      ],
      "parameters": {
        "id": "={{$node[\"TheHive\"].json[\"id\"]}}",
        "resource": "case",
        "operation": "get"
      },
      "credentials": {
        "theHiveApi": "hive"
      },
      "typeVersion": 1,
      "id": "389acc69-7342-4ab4-a159-76eb29cd4623",
      "notes": "This theHive node performs automated tasks as part of the workflow."
    },
    {
      "id": "error-e218f7f2",
      "name": "Error Handler",
      "type": "n8n-nodes-base.stopAndError",
      "typeVersion": 1,
      "position": [
        1000,
        400
      ],
      "parameters": {
        "message": "Workflow execution error",
        "options": {}
      }
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "saveManualExecutions": true,
    "callerPolicy": "workflowsFromSameOwner",
    "errorWorkflow": null,
    "timezone": "UTC",
    "executionTimeout": 3600,
    "maxExecutions": 1000,
    "retryOnFail": true,
    "retryCount": 3,
    "retryDelay": 1000
  },
  "connections": {},
  "description": "Automated workflow: Create, update and get a case in TheHive. This workflow processes data and performs automated tasks.",
  "meta": {
    "instanceId": "workflow-88805176",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:48.669792",
    "updatedAt": "2025-09-29T07:07:48.669797",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
    "optimized"
  ],
  "notes": "Excellent quality workflow: Create, update and get a case in TheHive. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."
}