<?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 EMA API to add an AlarmClock in Intel vPro® Platform</title>
    <link>https://community.intel.com/t5/Intel-vPro-Platform/EMA-API-to-add-an-AlarmClock/m-p/1406289#M9288</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to add an alarm clock - preferably with an interval of 7 days - using Intel EMA and its API via Powershell.&lt;/P&gt;
&lt;P&gt;Here is sample code to reproduce the issue:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$endpointid = "A296EED7F5997104BC4809ED2CE3BF3D80D61E0CCC968C0D432E950037608C31"
$body = @{ Name = "MaintenanceWindow"
    StartTime = "2022-08-12T00:43:05Z"
    Interval= @{Days = 7
        Hours = 0
        Minutes = 0}
    DeleteOnCompletion= $false
} | ConvertTo-Json
			
Invoke-RestMethod "https://emaservername/api/latest/endpointOOBOperations/Single/AlarmClock/$($EndpointId)" -Headers $headers -Method POST -body $body&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error-response is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{"Message":"The StartTime property is required. The DeleteOnCompletion property is required. The Name field is required. "}&lt;/P&gt;
&lt;P&gt;which indicates some error in my json, but it looks just like in the Swagger-Sample. It also doesnt work if I leave out the interval or set it to 0.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other Post-Methods, like waking up an endpoint per&amp;nbsp;/api/latest/endpointOOBOperations/Single/PowerOn work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm on the current version of EMA (v1.8.0.0).&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2022 10:30:01 GMT</pubDate>
    <dc:creator>JRüeg</dc:creator>
    <dc:date>2022-08-05T10:30:01Z</dc:date>
    <item>
      <title>EMA API to add an AlarmClock</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/EMA-API-to-add-an-AlarmClock/m-p/1406289#M9288</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to add an alarm clock - preferably with an interval of 7 days - using Intel EMA and its API via Powershell.&lt;/P&gt;
&lt;P&gt;Here is sample code to reproduce the issue:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$endpointid = "A296EED7F5997104BC4809ED2CE3BF3D80D61E0CCC968C0D432E950037608C31"
$body = @{ Name = "MaintenanceWindow"
    StartTime = "2022-08-12T00:43:05Z"
    Interval= @{Days = 7
        Hours = 0
        Minutes = 0}
    DeleteOnCompletion= $false
} | ConvertTo-Json
			
Invoke-RestMethod "https://emaservername/api/latest/endpointOOBOperations/Single/AlarmClock/$($EndpointId)" -Headers $headers -Method POST -body $body&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error-response is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{"Message":"The StartTime property is required. The DeleteOnCompletion property is required. The Name field is required. "}&lt;/P&gt;
&lt;P&gt;which indicates some error in my json, but it looks just like in the Swagger-Sample. It also doesnt work if I leave out the interval or set it to 0.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other Post-Methods, like waking up an endpoint per&amp;nbsp;/api/latest/endpointOOBOperations/Single/PowerOn work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm on the current version of EMA (v1.8.0.0).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 10:30:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/EMA-API-to-add-an-AlarmClock/m-p/1406289#M9288</guid>
      <dc:creator>JRüeg</dc:creator>
      <dc:date>2022-08-05T10:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: EMA API to add an AlarmClock</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/EMA-API-to-add-an-AlarmClock/m-p/1406292#M9289</link>
      <description>&lt;P&gt;I solved it with further testing. It worked after adding&amp;nbsp;-ContentType "text/json"&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 10:58:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/EMA-API-to-add-an-AlarmClock/m-p/1406292#M9289</guid>
      <dc:creator>JRüeg</dc:creator>
      <dc:date>2022-08-05T10:58:11Z</dc:date>
    </item>
  </channel>
</rss>

