Migrating Watcher alerts for redeploy

I have created a watcher alert in Kibana on a test environment which I need to transfer using Ansible as a new build to another environment. I have looked at the link below which is doesn't provide information to do so.
How do I ?

Just copy the json code of your watcher job and execute it in the new system.
You can copy the json code by pressing the button in the UI or using the API.

API can be accessed using the Dev Tools in Kibana.
This is the documentation for the APIs: Watcher APIs | Elasticsearch Guide [7.17] | Elastic

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.