How to add a webhook connector with its body to all existing Elastic detection rules automatically?

I created a webhook connector, and I want to add it to all of my installed detection rules without having to manually edit each rule’s actions section one by one. Is there a way to add it to all of them automatically? Especially if the body of the connector might change in the future.

Hey @Omar_Medhat

Welcome to the community.

I think bulk action “Add rule action” from this section of documentation might be what you are looking for: Manage detection rules | Elastic Docs

It would allow you to add the same body for webhook connector to multiple selected rules at a time.