# We are trying to create maintenece windows based on the public holidays via programming. Need to know how to do that.

**URL:** <https://community.dynatrace.com/t/we-are-trying-to-create-maintenece-windows-based-on-the-public-holidays-via-programming-need-to-know-how-to-do-that/43041>\
**Category:** Open Q&A\
**Created:** [December 5, 2023, 6:31pm UTC](https://community.dynatrace.com/t/we-are-trying-to-create-maintenece-windows-based-on-the-public-holidays-via-programming-need-to-know-how-to-do-that/43041 "2023-12-05T18:31:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![swamipd1974](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@swamipd1974](https://community.dynatrace.com/u/swamipd1974)\
**Post date:** [December 5, 2023, 6:31pm UTC](https://community.dynatrace.com/t/we-are-trying-to-create-maintenece-windows-based-on-the-public-holidays-via-programming-need-to-know-how-to-do-that/43041/1 "2023-12-05T18:31:32Z")

</div>

We are trying to create maintenece windows based on the public holidays. Need to know how to do that. Need to know how to get the public holidays in the API Call and create the maintenace window of that one via programatically.

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [December 5, 2023, 6:52pm UTC](https://community.dynatrace.com/t/we-are-trying-to-create-maintenece-windows-based-on-the-public-holidays-via-programming-need-to-know-how-to-do-that/43041/2 "2023-12-05T18:52:23Z")

</div>

Hi,

For this moment it’s a not possible. You need to manually setup.

You can create a new product idea.

Radek

---

<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:** [December 7, 2023, 7:46am UTC](https://community.dynatrace.com/t/we-are-trying-to-create-maintenece-windows-based-on-the-public-holidays-via-programming-need-to-know-how-to-do-that/43041/3 "2023-12-07T07:46:13Z")

</div>

Hi&nbsp;[@swamipd1974](https://community.dynatrace.com/user/69319)

You can try to develop a small automation code that will read&nbsp; holidays from&nbsp;[OpenHolidays API](https://www.openholidaysapi.org/en/)&nbsp;and create from it maintenance windows with /v2/settings/objects API

 ![Yosi_Neuman_0-1701935011752.png](https://global.discourse-cdn.com/dynatrace/original/1X/766fc25027f7cac8430d36b45ee9e23886602663.png)

 ![Yosi_Neuman_1-1701935165841.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/d102f1e95708f3232d722c65793d38c0bac98f67.png)

HTH

Yos

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [December 7, 2023, 7:48am UTC](https://community.dynatrace.com/t/we-are-trying-to-create-maintenece-windows-based-on-the-public-holidays-via-programming-need-to-know-how-to-do-that/43041/4 "2023-12-07T07:48:51Z")

</div>

This is also a good direction for [@Yosi\_Neuman](https://community.dynatrace.com/user/6931)&nbsp;😊  
It doesn’t change the fact that there is no simple option for this.
