Spaces method and path for this operation:
patch /s/{space_id}/api/risk_score/engine/saved_object/configure
Refer to Spaces for more information.
Configuring the Risk Engine Saved Object
PATCH
/api/risk_score/engine/saved_object/configure
curl \
--request PATCH 'https://localhost:5601/api/risk_score/engine/saved_object/configure' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '"{\n \"enable_reset_to_zero\": false,\n \"exclude_alert_statuses\": [\n \"closed\"\n ],\n \"exclude_alert_tags\": [\n \"low-priority\"\n ],\n \"filters\": [\n {\n \"entity_types\": [\n \"host\",\n \"user\"\n ],\n \"filter\": \"host.name: *\"\n }\n ],\n \"range\": {\n \"end\": \"now\",\n \"start\": \"now-30d\"\n }\n}"'
Request example
{
"enable_reset_to_zero": false,
"exclude_alert_statuses": [
"closed"
],
"exclude_alert_tags": [
"low-priority"
],
"filters": [
{
"entity_types": [
"host",
"user"
],
"filter": "host.name: *"
}
],
"range": {
"end": "now",
"start": "now-30d"
}
}
Response examples (200)
{
"risk_engine_saved_object_configured": true
}
Response examples (400)
{
"message": "Task Manager is unavailable, but is required by the risk engine. Please enable the taskManager plugin and try again.",
"status_code": 400
}
Response examples (default)
{
"errors": [
{
"error": "Internal server error",
"seq": 1
}
],
"risk_engine_saved_object_configured": false
}