# What value do I use to pull the ID for maintenance windows for an API Call?

**URL:** <https://community.dynatrace.com/t/what-value-do-i-use-to-pull-the-id-for-maintenance-windows-for-an-api-call/51136>\
**Category:** Dynatrace API\
**Tags:** dynatrace-managed, settings, dynatrace-api\
**Created:** [April 9, 2025, 12:40pm UTC](https://community.dynatrace.com/t/what-value-do-i-use-to-pull-the-id-for-maintenance-windows-for-an-api-call/51136 "2025-04-09T12:40:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![badgerfifteen](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@badgerfifteen](https://community.dynatrace.com/u/badgerfifteen)\
**Post date:** [April 9, 2025, 12:40pm UTC](https://community.dynatrace.com/t/what-value-do-i-use-to-pull-the-id-for-maintenance-windows-for-an-api-call/51136/1 "2025-04-09T12:40:13Z")

</div>

Hi all,

I’m trying to determine how to pull the GUUID for maintenance windows in Dynatrace. I’m not talking about the Object ID, as that is completely separate but possibly called the GUUID?

When you go into Settings in Dynatrace, then navigate to Maintenance Windows and then finally a specific one, the URL Address Bar changes to something like:

```markup
&id=049305939059306593-49205ir24k0rijw34g0f4wjtg0w3jg503t-0awe-9jg

```

I’d like to ingest this from the API, but don’t know what field it comes under? Any ideas?

---

<div class="post-metadata">

**Author:** ![yanezza](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yanezza/32/5036_2.png) [@yanezza](https://community.dynatrace.com/u/yanezza)\
**Post date:** [April 9, 2025, 2:05pm UTC](https://community.dynatrace.com/t/what-value-do-i-use-to-pull-the-id-for-maintenance-windows-for-an-api-call/51136/2 "2025-04-09T14:05:04Z")

</div>

Hi,  
it is the **setting uuid:**

- you can get it using MONACO and check the file name
- _or_ you can decode (base64) the objectid&nbsp;:wink: - I think you will go with this option

example:

```markup
vu9U3hXa3q0AAAABACNidWlsdGluOmFsZXJ0aW5nLm1haW50ZW5hbmNlLXdpbmRvdwAGdGVuYW50AAZ0ZW5hbnQAJDNhZmM4ZmI2LTA5OTgtM2RlZS05MzY5LTlkZTRiZDU5MGJmNr7vVN4V2t6t

```

will be

```markup
¾ïTÞÚÞ­����#builtin:alerting.maintenance-window�tenant�tenant�$3afc8fb6-0998-3dee-9369-9de4bd590bf6¾ïTÞÚÞ­

```

and my UUID is&nbsp; **3afc8fb6-0998-3dee-9369-9de4bd590bf6**

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [April 9, 2025, 4:16pm UTC](https://community.dynatrace.com/t/what-value-do-i-use-to-pull-the-id-for-maintenance-windows-for-an-api-call/51136/3 "2025-04-09T16:16:32Z")

</div>

Hi [@badgerfifteen](https://community.dynatrace.com/user/67521)&nbsp;, you can call the https://{{DT\_HOST}}/api/config/v1/maintenanceWindows and there you can obtain the id’s:

 ![DanielS_1-1744215374926.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/1/1121c4616c65581fe098150c559b1d766a9520fa.png)

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [April 10, 2025, 7:44pm UTC](https://community.dynatrace.com/t/what-value-do-i-use-to-pull-the-id-for-maintenance-windows-for-an-api-call/51136/4 "2025-04-10T19:44:13Z")

</div>

If you using API V2 the easiest way to do this is in the UI. Select your Targeted MW, and click the ‘…’ and pick API:

 ![ChadTurner_0-1744314136913.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/b/2b7c81150e63af45b1ae0a2e849b9bed429f3b4e.png)

If you are using API V1 you can then use the URL:

![ChadTurner_1-1744314217585.png](https://global.discourse-cdn.com/dynatrace/optimized/3X/e/5/e5793acebf587d0dc8314296ab3c0d645100bc1d_2_690x24.png)

Depending on what API i’m using, those are the fastest routes that I use to pull them one by one as needed.
