Spaces method and path for this operation:
post /s/{space_id}/api/detection_engine/attacks/assignees
Refer to Spaces for more information.
Assign users to attack discovery alerts, and unassign them from alerts.
Optionally cascade the change to related detection alerts via kibana.alert.attack_discovery.alert_ids.
You cannot add and remove the same assignee in the same request.
POST
/api/detection_engine/attacks/assignees
curl \
--request POST 'https://localhost:5601/api/detection_engine/attacks/assignees' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '"{\n \"assignees\": {\n \"add\": [\n \"u_MxY0jbrft7EcfC6iNZSUGeI_n6iYrSwZj5mWF5EqmSU_0\"\n ],\n \"remove\": []\n },\n \"ids\": [\n \"80e1383f856e67c1b7f7a1634744fa6d66b6e2ef7aa26d226e57afb5a7b2b4a1\"\n ]\n}"'
Request examples
Add
{
"assignees": {
"add": [
"u_MxY0jbrft7EcfC6iNZSUGeI_n6iYrSwZj5mWF5EqmSU_0"
],
"remove": []
},
"ids": [
"80e1383f856e67c1b7f7a1634744fa6d66b6e2ef7aa26d226e57afb5a7b2b4a1"
]
}
{
"assignees": {
"add": [],
"remove": [
"u_MxY0jbrft7EcfC6iNZSUGeI_n6iYrSwZj5mWF5EqmSU_0"
]
},
"ids": [
"80e1383f856e67c1b7f7a1634744fa6d66b6e2ef7aa26d226e57afb5a7b2b4a1"
]
}
{
"assignees": {
"add": [
"u_MxY0jbrft7EcfC6iNZSUGeI_n6iYrSwZj5mWF5EqmSU_0"
],
"remove": []
},
"ids": [
"80e1383f856e67c1b7f7a1634744fa6d66b6e2ef7aa26d226e57afb5a7b2b4a1"
],
"update_related_alerts": true
}
Response examples (200)
{
"batches": 1,
"deleted": 0,
"failures": [],
"noops": 0,
"requests_per_second": -1,
"retries": {
"bulk": 0,
"search": 0
},
"throttled_millis": 0,
"throttled_until_millis": 0,
"timed_out": false,
"took": 76,
"total": 1,
"updated": 1,
"version_conflicts": 0
}
Response examples (400)
{
"error": "Bad Request",
"message": "[request body].ids: at least one attack id is required to update assignees",
"statusCode": 400
}
Response examples (401)
{
"error": "Unauthorized",
"message": "[security_exception\n\tRoot causes:\n\t\tsecurity_exception: unable to authenticate user [elastic] for REST request [/_security/_authenticate]]: unable to authenticate user [elastic] for REST request [/_security/_authenticate]",
"statusCode": 401
}
Response examples (500)
{
"message": "Internal Server Error",
"status_code": 500
}