<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I update maintenance windows via the API v2? in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/How-do-I-update-maintenance-windows-via-the-API-v2/m-p/260142#M3434</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/67521"&gt;@badgerfifteen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per the latest Dynatrace version, Maintenance window via environment API has been deprecated, so you can use Environment API v2 "Settings - Objects"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-10-22_15h50_32.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23952i3C890DC8B5DE4765/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-10-22_15h50_32.png" alt="2024-10-22_15h50_32.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Simply you will :&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Get the Object ID using token with settings.read scope.&lt;/LI&gt;&lt;LI&gt;Put The Object ID using settings.write scope, and execute the required actions&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;As per attached steps (1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-10-22_15h53_31.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23950iFA45109079A3AEC7/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-10-22_15h53_31.png" alt="2024-10-22_15h53_31.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(2)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-10-22_15h56_16.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23951i90ACD781FD56CC7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-10-22_15h56_16.png" alt="2024-10-22_15h56_16.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;All the best.&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2024 12:00:04 GMT</pubDate>
    <dc:creator>Peter_Youssef</dc:creator>
    <dc:date>2024-10-22T12:00:04Z</dc:date>
    <item>
      <title>How do I update maintenance windows via the API v2?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-do-I-update-maintenance-windows-via-the-API-v2/m-p/260139#M3433</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For context, I am using the Settings - Objects API&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="badgerfifteen_0-1729595956300.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23949i452AB430B8AEB788/image-size/medium?v=v2&amp;amp;px=400" role="button" title="badgerfifteen_0-1729595956300.png" alt="badgerfifteen_0-1729595956300.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to create an application which calls the Dynatrace API to update an existing maintenance window. When I put the object ID, I get the following 404 error:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Configuration schema builtin:alerting.maintenance-window does not exist with version 1.0.0."&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I can't see any other API which would allow me to update a maintenance window, other than the deprecated one which I can't use for obvious reasons.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas? Would be greatly appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 11:21:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-do-I-update-maintenance-windows-via-the-API-v2/m-p/260139#M3433</guid>
      <dc:creator>badgerfifteen</dc:creator>
      <dc:date>2024-10-22T11:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I update maintenance windows via the API v2?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-do-I-update-maintenance-windows-via-the-API-v2/m-p/260142#M3434</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/67521"&gt;@badgerfifteen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per the latest Dynatrace version, Maintenance window via environment API has been deprecated, so you can use Environment API v2 "Settings - Objects"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-10-22_15h50_32.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23952i3C890DC8B5DE4765/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-10-22_15h50_32.png" alt="2024-10-22_15h50_32.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Simply you will :&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Get the Object ID using token with settings.read scope.&lt;/LI&gt;&lt;LI&gt;Put The Object ID using settings.write scope, and execute the required actions&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;As per attached steps (1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-10-22_15h53_31.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23950iFA45109079A3AEC7/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-10-22_15h53_31.png" alt="2024-10-22_15h53_31.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(2)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-10-22_15h56_16.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23951i90ACD781FD56CC7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-10-22_15h56_16.png" alt="2024-10-22_15h56_16.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;All the best.&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 12:00:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-do-I-update-maintenance-windows-via-the-API-v2/m-p/260142#M3434</guid>
      <dc:creator>Peter_Youssef</dc:creator>
      <dc:date>2024-10-22T12:00:04Z</dc:date>
    </item>
  </channel>
</rss>

