<?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 to delete incidents with API(core-api-post /incident/batchDelete) in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-delete-incidents-with-api-core-api-post-incident/m-p/579727#M3133</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your payload, the incident id is passed as a filter, which is incorrect. Here is an example of the correct payload format,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;!core-api-post uri=&lt;SPAN&gt;uri=`/incident/batchDelete` body=`{"ids":["260906"]}`&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Additionally, the filter parameter accepts a query if you need to delete all incidents before a certain date. You can view the payload format on developer tools, by monitoring the request to delete an incident.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if you have further questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Rahul&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2024 21:51:57 GMT</pubDate>
    <dc:creator>RahulVijaydev</dc:creator>
    <dc:date>2024-03-07T21:51:57Z</dc:date>
    <item>
      <title>How to delete incidents with API(core-api-post /incident/batchDelete)</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-delete-incidents-with-api-core-api-post-incident/m-p/579625#M3129</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am sending a command like below on the API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="parent-entry-label ellipsis show-as-link" title="!core-api-post uri=&amp;quot;/incident/batchDelete&amp;quot; body=&amp;quot;{\&amp;quot;filter\&amp;quot;:{\&amp;quot;id\&amp;quot;:[\&amp;quot;260906\&amp;quot;]}}&amp;quot; (Core REST API[Core REST API_instance_1])"&gt;!core-api-post uri="/incident/batchDelete" body="{\"filter\":{\"id\":[\"260906\"]}}"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;But it does not delete the incidents I want. It does not give an error.&lt;BR /&gt;How to use this correctly? I want to delete all indicents before a certain date (for example 01.01.2024).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 11:08:44 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-delete-incidents-with-api-core-api-post-incident/m-p/579625#M3129</guid>
      <dc:creator>KeremGunal</dc:creator>
      <dc:date>2024-03-07T11:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete incidents with API(core-api-post /incident/batchDelete)</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-delete-incidents-with-api-core-api-post-incident/m-p/579727#M3133</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your payload, the incident id is passed as a filter, which is incorrect. Here is an example of the correct payload format,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;!core-api-post uri=&lt;SPAN&gt;uri=`/incident/batchDelete` body=`{"ids":["260906"]}`&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Additionally, the filter parameter accepts a query if you need to delete all incidents before a certain date. You can view the payload format on developer tools, by monitoring the request to delete an incident.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if you have further questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Rahul&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 21:51:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-delete-incidents-with-api-core-api-post-incident/m-p/579727#M3133</guid>
      <dc:creator>RahulVijaydev</dc:creator>
      <dc:date>2024-03-07T21:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete incidents with API(core-api-post /incident/batchDelete)</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-delete-incidents-with-api-core-api-post-incident/m-p/579733#M3134</link>
      <description>&lt;P&gt;as an example, can you forward a query that will delete all incidents before 2024-01-01 00:00?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 22:01:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-delete-incidents-with-api-core-api-post-incident/m-p/579733#M3134</guid>
      <dc:creator>KeremGunal</dc:creator>
      <dc:date>2024-03-07T22:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete incidents with API(core-api-post /incident/batchDelete)</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-delete-incidents-with-api-core-api-post-incident/m-p/579734#M3135</link>
      <description>&lt;P&gt;In addition, get error like this;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV class="row entry-parent"&gt;
&lt;DIV class="floated left aligned sixteen wide mobile six wide tablet sixteen wide computer column"&gt;
&lt;DIV class="entry-metadata"&gt;
&lt;DIV class="entry-task-command"&gt;&lt;STRONG&gt;&lt;SPAN&gt;Command:&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;
&lt;DIV class="display-parent-entry"&gt;&lt;SPAN class="parent-entry-label ellipsis show-as-link" title="!core-api-post uri=&amp;quot;/incident/batchDelete&amp;quot; body=&amp;quot;{\&amp;quot;ids\&amp;quot;:[\&amp;quot;306438\&amp;quot;]}&amp;quot;"&gt;!core-api-post uri="/incident/batchDelete" body="{\"ids\":[\"306438\"]}&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="entry-view vertical-strech entry-error"&gt;
&lt;DIV class="vertical-strech demisto-data"&gt;
&lt;DIV&gt;&lt;SPAN class="entry-task-reason"&gt;&lt;STRONG&gt;&lt;SPAN&gt;Reason&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;
&lt;DIV class="entry-note-view" data-test-id="entry-note-text"&gt;
&lt;DIV&gt;
&lt;DIV class="entry-text-view"&gt;&lt;SPAN class=""&gt;Error from Core REST API is : Script failed to run: Core REST APIs - Request Failed. Status code: 400. Body: {"StatusCode":400,"Status":"400 Bad Request","Cookies":[],"Body":"{\"id\":\"missing_request\",\"status\":400,\"title\":\"Bad request\",\"detail\":\"Request body is missing mandatory parts.\",\"error\":\"Missing required filter argument on batch request (7)\",\"encrypted\":false,\"multires\":null}\n","Bytes":&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Mar 2024 22:06:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-delete-incidents-with-api-core-api-post-incident/m-p/579734#M3135</guid>
      <dc:creator>KeremGunal</dc:creator>
      <dc:date>2024-03-07T22:06:12Z</dc:date>
    </item>
  </channel>
</rss>

