🛡️

Create Case

Verified

@elastic/create-case

Create a new security investigation case

Usage

RUN SKILL create_case()

With parameters:

RUN SKILL create_case WITH title = 'value'

Parameters

NameTypeDefaultDescription
titleSTRINGCase title

Returns

DOCUMENT— A single document object

Example

-- Using curl
curl -u elastic-admin:elastic-password http://localhost:9200/_escript \
  -H "Content-Type: application/json" \
  -d '{"query": "RUN SKILL create_case()"}'

-- Response
{
  "result": [...],
  "_meta": {
    "execution_id": "abc123",
    "duration_ms": 45
  }
}