# Disable Dynatrace Maintenance window from Jenkins

**URL:** <https://community.dynatrace.com/t/disable-dynatrace-maintenance-window-from-jenkins/46191>\
**Category:** Open Q&A\
**Tags:** jenkins, maintenance-window\
**Created:** [June 18, 2024, 5:10pm UTC](https://community.dynatrace.com/t/disable-dynatrace-maintenance-window-from-jenkins/46191 "2024-06-18T17:10:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhinav2](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@abhinav2](https://community.dynatrace.com/u/abhinav2)\
**Post date:** [June 18, 2024, 5:10pm UTC](https://community.dynatrace.com/t/disable-dynatrace-maintenance-window-from-jenkins/46191/1 "2024-06-18T17:10:34Z")

</div>

Hi Team,

I have created Jenkins Job and added parameters to it to Call Dynatrace Endpoint and create a maintenance window(Managed and SaaS).

As from UI we were able to disable maintenance window but wanted to check if same can be possible through Jenkins to call Dynatrace endpoint to disable it. As this option would helpful to disable maintenance window if the planned maintenance is completed earlier than the scheduled.

Thanks

Abhinav

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [June 18, 2024, 9:52pm UTC](https://community.dynatrace.com/t/disable-dynatrace-maintenance-window-from-jenkins/46191/2 "2024-06-18T21:52:15Z")

</div>

Hi,

You can call this API to update a existing maintenace window, but you need _objectId_:

 ![AntonPineiro_0-1718747449483.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/b/8bac4041572e009c871b43265468253f43d21fc8.png)

You can change _enabled_ from “true” to “false”.

Best regards
