# Watcher action to call REST API

**URL:** <https://discuss.elastic.co/t/watcher-action-to-call-rest-api/238472>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [June 24, 2020, 1:04pm UTC](https://discuss.elastic.co/t/watcher-action-to-call-rest-api/238472 "2020-06-24T13:04:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chitraj8](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chitraj8/32/42639_2.png) [@chitraj8](https://discuss.elastic.co/u/chitraj8)\
**Post date:** [June 24, 2020, 1:04pm UTC](https://discuss.elastic.co/t/watcher-action-to-call-rest-api/238472/1 "2020-06-24T13:04:47Z")

</div>

We would like to use the watcher feature that is part of commercial plugin in x-pack.  
After exploring the details from docs, we would like to get help on how to call an action that is REST API in the watcher configuration?  
scenario: we would like to get alert based on **condition** when AD group name changes on service repo and would like to use **action** to call a REST API to set the AD group to be default for the service.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 22, 2020, 1:10pm UTC](https://discuss.elastic.co/t/watcher-action-to-call-rest-api/238472/2 "2020-07-22T13:10:07Z")

</div>

Closed on July 22, 2020, 1:10pm UTC

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