Spaces method and path for this operation:
post /s/{space_id}/api/alerting/v2/episodes/_bulk_assign
Refer to Spaces for more information.
Create the same action for multiple alert episodes in a single request.
[Required authorization] Route required privileges: manage_alerting-v2-alerts.
Responses
-
Returns the number of created actions and per-item errors for actions that were not created.
-
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 an unexpected server-side error.
-
Indicates the alerting engine is disabled by the
alerting:v2:enabledadvanced setting.
POST
/api/alerting/v2/episodes/_bulk_assign
curl \
--request POST 'https://localhost:5601/api/alerting/v2/episodes/_bulk_assign' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{
"items": [
{
"assignee_uid": "u_abc123",
"episode_id": "episode-1"
},
{
"assignee_uid": null,
"episode_id": "episode-2"
}
]
}'
Request example
{
"items": [
{
"assignee_uid": "u_abc123",
"episode_id": "episode-1"
},
{
"assignee_uid": null,
"episode_id": "episode-2"
}
]
}
Response examples (200)
{
"affected_count": 2,
"errors": []
}
Response examples (400)
{
"code": "BAD_REQUEST",
"details": {
"errors": {
"items": [
"At least one action must be provided"
]
}
},
"error": "Bad Request",
"message": "items: At least one action must be provided"
}
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 (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."
}