Elastic Alerts & Cases API

is there a way to add alerts to a case using api?

I asked chatgpt and it gave me this:

POST /api/cases/{case_id}/alerts
{
"alerts": [
{
"id": "alert_id_1",
"index": "index_name_1"
},
{
"id": "alert_id_2",
"index": "index_name_2"
}
]
}

did not found it in the official documentation and also did not work

1 Like

Welcome to the community @hal :wave:

An alert can be attached to a case via the Add comment to case API.

Thanks Georgii, the comment seems to add one alert to a case, how can I add multiple alerts to a case ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.