Spaces method and path for this operation:
Refer to Spaces for more information.
Create an action for a specific alert group.
[Required authorization] Route required privileges: manage_alerting-v2-alerts.
Path parameters
-
Hash identifying the alert group to apply the action to.
Minimum length is
1, maximum length is256.
Body
-
ISO datetime when snooze should expire.
Format should match the following pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$.
Responses
-
Returns the newly created alert action.
-
Indicates an invalid schema or parameters.
-
Indicates the request was not authenticated.
-
Indicates the user does not have the required privileges to perform the request.
-
Indicates the alert event was not found.
-
Indicates an unexpected server-side error.
-
Indicates the alerting engine is disabled by the
alerting:v2:enabledadvanced setting.
curl \
--request POST 'https://localhost:5601/api/alerting/v2/alerts/{group_hash}/_snooze' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '"{\n \"expiry\": \"2026-01-16T12:00:00.000Z\"\n}"'
{
"expiry": "2026-01-16T12:00:00.000Z"
}
{
"code": "BAD_REQUEST",
"details": {
"errors": {
"group_hash": [
"Required"
]
}
},
"error": "Bad Request",
"message": "group_hash: Required"
}
{
"code": "UNAUTHORIZED",
"error": "Unauthorized",
"message": "Authentication required to access this API."
}
{
"code": "FORBIDDEN",
"error": "Forbidden",
"message": "The current user does not have the required privileges for this request."
}
{
"code": "ALERT_EVENT_NOT_FOUND",
"details": {
"episode_id": "episode-1",
"group_hash": "group-hash-1"
},
"error": "Not Found",
"message": "Alert event with group_hash [group-hash-1] and episode_id [episode-1] not found"
}
{
"code": "INTERNAL_SERVER_ERROR",
"error": "Internal Server Error",
"message": "An unexpected error occurred."
}
{
"code": "ALERTING_DISABLED",
"error": "Service Unavailable",
"message": "Alerting is disabled."
}