Create Task
thehive.create_task
ActionBusiness appsconnection required
Calls the TheHive API with the connection's credentials.
Add an investigation task to a case.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- Bearer token
- Providers
- TheHive
- Secret shape
- the TheHive API key, or {"api_key": "…"}
- Config it needs
- base_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
11 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
case_id TheHive id of the case, or its case number. | string | Yes | — | — | ~40964216 |
title The task title. | string | Yes | — | — | Collect mail headers |
group The task group this task belongs to, e.g. identification. | string | No | — | — | — |
description What the task involves. | string | No | — | — | — |
status The status to open the task in, e.g. Waiting or InProgress. | string | No | — | — | — |
assignee Login of the analyst to assign the task to. | string | No | — | — | — |
due_date When the task is due, in epoch milliseconds. | number | No | — | ≥ 0 | — |
order Where the task sits in its group; lower numbers come first. | number | No | — | ≥ 0 | — |
mandatory Block closing the case while this task is still open. | boolean | No | — | — | — |
flag Flag the task for attention. | boolean | No | — | — | — |
extra Any further TheHive fields for this record, as a JSON object. These are merged last and win over the fields above. | object | No | — | — | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"case_id": "~40964216",
"title": "Collect mail headers"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
_id TheHive's internal id for the task. | string | — |
title The task title. | string | — |
group The task group the task belongs to. | string | — |
description The task description. | string | — |
status The task status, e.g. Waiting or InProgress. | string | — |
assignee Login of the analyst the task is assigned to. | string | — |
order The task's position in its group. | number | — |
dueDate When the task is due, in epoch milliseconds. | number | — |
mandatory True when the case cannot close with this task open. | boolean | — |
flag True when the task is flagged for attention. | boolean | — |
_createdAt When the task was created, in epoch milliseconds. | number | — |
{
"_createdAt": 0,
"_id": "",
"assignee": "",
"description": "",
"dueDate": 0,
"flag": false,
"group": "",
"mandatory": false,
"order": 0,
"status": "",
"title": ""
}See Create Task run in a workflow.
In a technical demo we add the TheHive connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.