<?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>article Qlik Sense QRS API: 409 conflict error when running a PUT request in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-QRS-API-409-conflict-error-when-running-a-PUT-request/ta-p/1713614</link>
    <description>&lt;P&gt;409 conflict error is returned when running a PUT request towards the Qlik Sense Repository Service API.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Environments:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Sense Enterprise for Windows&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Parameter "modifiedDate" is stated as optional on the help site, however it is compulsory for PUT requests and&amp;nbsp;optional for POST requests.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The parameter "modifiedDate" needs to be specified, it doesn't need to be the exact current time, just a time newer that the current time, the repository service will automatically update this to the correct time when it receives and validates the request.&lt;BR /&gt;&lt;BR /&gt;Here is a PowerShell sample to update the Scheduler service settings:&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;$hdrs = @{}
$hdrs.Add("X-Qlik-xrfkey","12345678qwertyui")
$hdrs.Add("X-Qlik-User","UserDirectory=DOMAIN;UserId=Administrator")
$cert = Get-ChildItem -Path "Cert:\CurrentUser\My\"   | Where {$_.Subject -like '*QlikClient*'}
$url = "https://qlikserver2.domain.local:4242/qrs/SchedulerService/befac0e7-047b-4f57-87c0-df9474321550?xrfkey=12345678qwertyui"
$body = '{"serverNodeConfiguration":{"name":  "Central","hostName":  "qlikserver2.domain.local","serviceCluster":{"name":"ServiceCluster"}},
    "settings":{"logVerbosity":{"logVerbosityTaskExecution":1}},"modifiedDate":"2020-05-20T09:25:35.647Z"}'
Invoke-RestMethod -Uri $url -Method Put -Headers $hdrs -Certificate $cert -Body $body -ContentType 'application/json'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Feb 2021 09:19:54 GMT</pubDate>
    <dc:creator>Damien_V</dc:creator>
    <dc:date>2021-02-23T09:19:54Z</dc:date>
    <item>
      <title>Qlik Sense QRS API: 409 conflict error when running a PUT request</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-QRS-API-409-conflict-error-when-running-a-PUT-request/ta-p/1713614</link>
      <description>&lt;P&gt;409 conflict error is returned when running a PUT request towards the Qlik Sense Repository Service API.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Environments:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Sense Enterprise for Windows&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Parameter "modifiedDate" is stated as optional on the help site, however it is compulsory for PUT requests and&amp;nbsp;optional for POST requests.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The parameter "modifiedDate" needs to be specified, it doesn't need to be the exact current time, just a time newer that the current time, the repository service will automatically update this to the correct time when it receives and validates the request.&lt;BR /&gt;&lt;BR /&gt;Here is a PowerShell sample to update the Scheduler service settings:&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;$hdrs = @{}
$hdrs.Add("X-Qlik-xrfkey","12345678qwertyui")
$hdrs.Add("X-Qlik-User","UserDirectory=DOMAIN;UserId=Administrator")
$cert = Get-ChildItem -Path "Cert:\CurrentUser\My\"   | Where {$_.Subject -like '*QlikClient*'}
$url = "https://qlikserver2.domain.local:4242/qrs/SchedulerService/befac0e7-047b-4f57-87c0-df9474321550?xrfkey=12345678qwertyui"
$body = '{"serverNodeConfiguration":{"name":  "Central","hostName":  "qlikserver2.domain.local","serviceCluster":{"name":"ServiceCluster"}},
    "settings":{"logVerbosity":{"logVerbosityTaskExecution":1}},"modifiedDate":"2020-05-20T09:25:35.647Z"}'
Invoke-RestMethod -Uri $url -Method Put -Headers $hdrs -Certificate $cert -Body $body -ContentType 'application/json'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 09:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-QRS-API-409-conflict-error-when-running-a-PUT-request/ta-p/1713614</guid>
      <dc:creator>Damien_V</dc:creator>
      <dc:date>2021-02-23T09:19:54Z</dc:date>
    </item>
  </channel>
</rss>

