Schedule a snooze for the rule
Generally available
Spaces method and path for this operation:
post /s/{space_id}/api/alerting/rule/{id}/snooze_schedule
Refer to Spaces for more information.
When you snooze a rule, the rule checks continue to run but alerts will not generate actions. You can snooze for a specified period of time and schedule single or recurring downtimes.
POST
/api/alerting/rule/{id}/snooze_schedule
curl \
--request POST 'https://<KIBANA_URL>/api/alerting/rule/{id}/snooze_schedule' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"schedule":{"custom":{"duration":"string","recurring":{"end":"string","every":"string","occurrences":42.0,"onMonth":[42.0],"onMonthDay":[42.0],"onWeekDay":["string"]},"start":"string","timezone":"string"}}}'