# Create a program to enable/disable any DT Synthetic monitor

**URL:** <https://community.dynatrace.com/t/create-a-program-to-enable-disable-any-dt-synthetic-monitor/31029>\
**Category:** Synthetic Monitoring\
**Tags:** synthetic-monitoring\
**Created:** [April 6, 2021, 9:40am UTC](https://community.dynatrace.com/t/create-a-program-to-enable-disable-any-dt-synthetic-monitor/31029 "2021-04-06T09:40:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinit\_dhamani](https://avatars.discourse-cdn.com/v4/letter/v/e56c9b/32.png) [@vinit\_dhamani](https://community.dynatrace.com/u/vinit_dhamani)\
**Post date:** [April 6, 2021, 9:40am UTC](https://community.dynatrace.com/t/create-a-program-to-enable-disable-any-dt-synthetic-monitor/31029/1 "2021-04-06T09:40:42Z")

</div>

Hi All,

We are trying to create a script in python or JavaScript so it can be hosted on backend and run by us. This will enable any user in organization to enable or disable the specific monitor.Is there any script available already to accomplish this?I checked in the community and found solution for bulk enable/disable which is of no use for us.Note:&nbsp;I know&nbsp;[Synthetic Monitors API](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/synthetic/synthetic-monitors/)&nbsp;through which need to create a token and&nbsp;pull the monitor ids using&nbsp;[Get all monitors](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/synthetic/synthetic-monitors/get-all-monitors/)But how to achieve this via python or any other language? I am looking for that solution.Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [April 7, 2021, 6:11am UTC](https://community.dynatrace.com/t/create-a-program-to-enable-disable-any-dt-synthetic-monitor/31029/2 "2021-04-07T06:11:44Z")

</div>

Hi&nbsp;[@vinit\_dhamani](https://community.dynatrace.com/user/31246)

Check&nbsp;[Bulk-Enable-Disable-Monitors](https://github.com/Dynatrace/snippets/tree/master/api/synthetic/bulk-enable-disable-monitors)

HTH

Yos
