<?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 edit an internal entity with an REST API call in Fraud, AML and Security Intelligence</title>
    <link>https://communities.sas.com/t5/Fraud-AML-and-Security/How-to-edit-an-internal-entity-with-an-REST-API-call/m-p/576515#M337</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The records within VI are versioned to ensure that the concurrent modifications do not overwrite each other. This is enforced by the version and modification timestamp fields, which are set to "version" and "last_updated_at_dttm" fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The best approach is to do a GET on the resource first and modify it, ensuring you are starting with the latest resource. The "version" and "last_updated_at_dttm" values from the GET request must match the values in the request body. Keep in mind that the returned resource will have those values updated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you need more assistance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Paulius.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2019 09:43:33 GMT</pubDate>
    <dc:creator>mtlppe</dc:creator>
    <dc:date>2019-07-25T09:43:33Z</dc:date>
    <item>
      <title>How to edit an internal entity with an REST API call</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/How-to-edit-an-internal-entity-with-an-REST-API-call/m-p/576215#M336</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I try to edit an internal entity in VI 10.5 with this request (I'm using postman):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -X PUT \&lt;BR /&gt;https://&amp;lt;tenant-name&amp;gt;/svi-datahub/documents/test_modification/8ce7a94a-576f-4a93-9332-825afb52ad68 \&lt;BR /&gt;-H 'Accept: application/json' \&lt;BR /&gt;-H 'Authorization: Bearer &amp;lt;access_token' \&lt;BR /&gt;-H 'Connection: keep-alive' \&lt;BR /&gt;-H 'Content-Type: application/json' \&lt;BR /&gt;-H 'X-CSRF-TOKEN: ebd81d8d-2b98-4d70-a7d0-361781a6264d' \&lt;BR /&gt;-d '{"objectTypeId": 120819,"objectTypeName": "test_modification","objectTypeVersion":12,"id": "8ce7a94a-576f-4a93-9332-825afb52ad68","fieldValues":{"created_at_dttm":"2019-07-24T13:08:35.718Z","created_by_user_id": "viadmin","last_updated_at_dttm": "2019-07-24T15:20:39.132Z", "last_updated_by_user_id": "viadmin","nom": "BALISTE","prenom":"Fred","dob":"2019-04-25","pob":"Lechnord","I_validation":"AUTO","test_modification_id": "8ce7a94a-576f-4a93-9332-825afb52ad68","version":4}}'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but without success. Postman output is that my "update request is no longer valid" and ask me to "get back the current state for the resource". I don't undestand what to do, any idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 15:40:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/How-to-edit-an-internal-entity-with-an-REST-API-call/m-p/576215#M336</guid>
      <dc:creator>JeanDo</dc:creator>
      <dc:date>2019-07-24T15:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit an internal entity with an REST API call</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/How-to-edit-an-internal-entity-with-an-REST-API-call/m-p/576515#M337</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The records within VI are versioned to ensure that the concurrent modifications do not overwrite each other. This is enforced by the version and modification timestamp fields, which are set to "version" and "last_updated_at_dttm" fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The best approach is to do a GET on the resource first and modify it, ensuring you are starting with the latest resource. The "version" and "last_updated_at_dttm" values from the GET request must match the values in the request body. Keep in mind that the returned resource will have those values updated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you need more assistance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Paulius.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 09:43:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/How-to-edit-an-internal-entity-with-an-REST-API-call/m-p/576515#M337</guid>
      <dc:creator>mtlppe</dc:creator>
      <dc:date>2019-07-25T09:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit an internal entity with an REST API call</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/How-to-edit-an-internal-entity-with-an-REST-API-call/m-p/576580#M338</link>
      <description>&lt;P&gt;Hi Paulius,&lt;/P&gt;&lt;P&gt;Thanks for your response, it's very usefull! In fact I was wrong with these two fields, I was thinking that I had to put the "version" field to the current "version" number plus one, and the "last_updated_at_dttm" to the current datetime.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works fine now!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;JD&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 13:32:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/How-to-edit-an-internal-entity-with-an-REST-API-call/m-p/576580#M338</guid>
      <dc:creator>JeanDo</dc:creator>
      <dc:date>2019-07-25T13:32:02Z</dc:date>
    </item>
  </channel>
</rss>

