Spaces method and path for this operation:
post /s/{space_id}/api/alerting/v2/alerts/{group_hash}/_unack
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.
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.
POST
/api/alerting/v2/alerts/{group_hash}/_unack
curl \
--request POST 'https://localhost:5601/api/alerting/v2/alerts/{group_hash}/_unack' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '"{\n \"episode_id\": \"episode-1\"\n}"'
Request example
{
"episode_id": "episode-1"
}
Response examples (400)
{
"code": "BAD_REQUEST",
"details": {
"errors": {
"group_hash": [
"Required"
]
}
},
"error": "Bad Request",
"message": "group_hash: Required"
}
Response examples (401)
{
"code": "UNAUTHORIZED",
"error": "Unauthorized",
"message": "Authentication required to access this API."
}
Response examples (403)
{
"code": "FORBIDDEN",
"error": "Forbidden",
"message": "The current user does not have the required privileges for this request."
}
Response examples (404)
{
"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"
}
Response examples (500)
{
"code": "INTERNAL_SERVER_ERROR",
"error": "Internal Server Error",
"message": "An unexpected error occurred."
}
Response examples (503)
{
"code": "ALERTING_DISABLED",
"error": "Service Unavailable",
"message": "Alerting is disabled."
}