Add and remove detection alert tags
Spaces method and path for this operation:
post /s/{space_id}/api/detection_engine/signals/tags
Refer to Spaces for more information.
And tags to detection alerts, and remove them from alerts.
You cannot add and remove the same alert tag in the same request.
POST
/api/detection_engine/signals/tags
curl \
--request POST 'https://localhost:5601/api/detection_engine/signals/tags' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"ids":["549c7129c76cbd554aba1bd638f8a49dde95088f5832e50218358e7eca1cf16e"],"tags":{"tags_to_add":["Duplicate"],"tags_to_remove":[]}}'
Request examples
Add
{
"ids": [
"549c7129c76cbd554aba1bd638f8a49dde95088f5832e50218358e7eca1cf16e"
],
"tags": {
"tags_to_add": [
"Duplicate"
],
"tags_to_remove": []
}
}
{
"ids": [
"549c7129c76cbd554aba1bd638f8a49dde95088f5832e50218358e7eca1cf16e"
],
"tags": {
"tags_to_add": [],
"tags_to_remove": [
"Duplicate"
]
}
}
Response examples (200)
{
"took": "68,",
"noops": "0,",
"total": "1,",
"batches": "1,",
"deleted": "0,",
"retries": {
"bulk": "0,",
"search": 0
},
"updated": "1,",
"failures": [],
"timed_out": "false,",
"throttled_millis": "0,",
"version_conflicts": "0,",
"requests_per_second": "-1,",
"throttled_until_millis": "0,"
}