<?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 Update XSOAR Incident via API - version issues in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/update-xsoar-incident-via-api-version-issues/m-p/1235730#M4127</link>
    <description>&lt;P&gt;I am trying to update XSOAR Incidents via API, but am having issues with the Optimistic lock and incident versions etc.&lt;/P&gt;
&lt;P&gt;I can create incidents via API call and can also get the information from incidents via API.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I create a new incident in our Dev env, the version for the incident is typically showing as "-1"&amp;nbsp;&lt;BR /&gt;I have some incidents that show their version as "0" but I am not sure what changes them from -1 to 0.&lt;BR /&gt;When I try to update an incident that is currently at version 0 via API, I get an&amp;nbsp;&lt;SPAN&gt;"error"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"object has been modified (15)"&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;So I run a get on the incident again to get the correct version and it shows version : 0 still... &lt;BR /&gt;If I try to update the incident again, I get the same error. This is what I am using for my API Endpoint :&amp;nbsp;/xsoar/public/v1/incident&lt;BR /&gt;This is what I have for my update test :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"id"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"153354"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"version"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"severity"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Can anyone shed some light on what I am doing wrong?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If I set the version to -1 , it successfully forces the update, but I don't really think that is the correct solution here.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Following docs here:&amp;nbsp;&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR-8-API/Create-or-update-an-incident" target="_blank"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR-8-API/Create-or-update-an-incident&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Aug 2025 19:00:11 GMT</pubDate>
    <dc:creator>kbratt</dc:creator>
    <dc:date>2025-08-08T19:00:11Z</dc:date>
    <item>
      <title>Update XSOAR Incident via API - version issues</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/update-xsoar-incident-via-api-version-issues/m-p/1235730#M4127</link>
      <description>&lt;P&gt;I am trying to update XSOAR Incidents via API, but am having issues with the Optimistic lock and incident versions etc.&lt;/P&gt;
&lt;P&gt;I can create incidents via API call and can also get the information from incidents via API.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I create a new incident in our Dev env, the version for the incident is typically showing as "-1"&amp;nbsp;&lt;BR /&gt;I have some incidents that show their version as "0" but I am not sure what changes them from -1 to 0.&lt;BR /&gt;When I try to update an incident that is currently at version 0 via API, I get an&amp;nbsp;&lt;SPAN&gt;"error"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"object has been modified (15)"&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;So I run a get on the incident again to get the correct version and it shows version : 0 still... &lt;BR /&gt;If I try to update the incident again, I get the same error. This is what I am using for my API Endpoint :&amp;nbsp;/xsoar/public/v1/incident&lt;BR /&gt;This is what I have for my update test :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"id"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"153354"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"version"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"severity"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Can anyone shed some light on what I am doing wrong?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If I set the version to -1 , it successfully forces the update, but I don't really think that is the correct solution here.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Following docs here:&amp;nbsp;&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR-8-API/Create-or-update-an-incident" target="_blank"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR-8-API/Create-or-update-an-incident&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 19:00:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/update-xsoar-incident-via-api-version-issues/m-p/1235730#M4127</guid>
      <dc:creator>kbratt</dc:creator>
      <dc:date>2025-08-08T19:00:11Z</dc:date>
    </item>
  </channel>
</rss>

