Update Attack discovery schedule
Technical Preview; added in 9.2.0
Spaces method and path for this operation:
put /s/{space_id}/api/attack_discovery/schedules/{id}
Refer to Spaces for more information.
Updates an existing Attack discovery schedule with new configuration. All schedule properties can be modified including name, parameters, interval, and actions. The update operation replaces the entire schedule configuration with the provided values. Technical preview
Path parameters
-
The unique identifier (UUID) of the Attack Discovery schedule to update. This ID is returned when creating a schedule and can be found in schedule listings.
Minimum length is
1.
PUT
/api/attack_discovery/schedules/{id}
curl \
--request PUT 'http://localhost:5601/api/attack_discovery/schedules/12345678-1234-1234-1234-123456789012' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{
"name": "Updated Daily Security Analysis",
"params": {
"alerts_index_pattern": ".alerts-security.alerts-default",
"api_config": {
"actionTypeId": "bedrock",
"connectorId": "my-bedrock-connector",
"name": "Claude 3.5 Sonnet"
},
"size": 200,
"start": "now-48h",
"end": "now"
},
"schedule": {
"interval": "12h"
},
"actions": []
}'
Request example
{
"name": "Updated Daily Security Analysis",
"params": {
"end": "now",
"size": 200,
"start": "now-48h",
"api_config": {
"name": "Claude 3.5 Sonnet",
"connectorId": "my-bedrock-connector",
"actionTypeId": "bedrock"
},
"alerts_index_pattern": ".alerts-security.alerts-default"
},
"actions": [],
"schedule": {
"interval": "12h"
}
}
Response examples (200)
{
"id": "12345678-1234-1234-1234-123456789012",
"name": "Updated Daily Security Analysis",
"params": {
"end": "now",
"size": 200,
"start": "now-48h",
"api_config": {
"name": "Claude 3.5 Sonnet",
"connectorId": "my-bedrock-connector",
"actionTypeId": "bedrock"
},
"alerts_index_pattern": ".alerts-security.alerts-default"
},
"actions": [],
"enabled": true,
"schedule": {
"interval": "12h"
},
"created_at": "2023-10-31T10:00:00.000Z",
"created_by": "elastic",
"updated_at": "2023-10-31T12:00:00.000Z",
"updated_by": "elastic"
}
Response examples (400)
{
"error": "Bad Request",
"message": "Invalid request parameters",
"status_code": 400
}