<?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: Qlik SAAS API Error in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SAAS-API-Error/m-p/1829583#M15461</link>
    <description>&lt;P&gt;This seems to be an artifact of curl for Windows on my end. This is working for me:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;curl "https://&amp;lt;tenant&amp;gt;.&amp;lt;region&amp;gt;.qlikcloud.com/api/v1/reloads" -X POST -H "Authorization: Bearer &amp;lt;myApiKey&amp;gt;" -H "Content-type: application/json" -d "{\"appId\":\"&amp;lt;myAppId\"}"&lt;/LI-CODE&gt;&lt;P&gt;Single quotes (') around the body and not escaping the double quotes in the body isn't needed on curl launched via the Linux Subsystem for Windows install I have.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Aug 2021 22:59:28 GMT</pubDate>
    <dc:creator>Levi_Turner</dc:creator>
    <dc:date>2021-08-18T22:59:28Z</dc:date>
    <item>
      <title>Qlik SAAS API Error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SAAS-API-Error/m-p/1827131#M15374</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using the Qlik SAAS API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i attempt to reload a dashboard, the error below is returned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"traceId":"67d14d4c1cd2410595748ce67ac04c88","errors":[{"code":"RELOADS-001","title":"Invalid request."}]}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I am using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl "&lt;A href="https://your-tenant.us.qlikcloud.com/api/v1/reloads" target="_blank"&gt;https://your-tenant.us.qlikcloud.com/api/v1/reloads&lt;/A&gt;" \&lt;BR /&gt;-X POST \&lt;BR /&gt;-H "Authorization: Bearer &amp;lt;API-key&amp;gt;" \&lt;BR /&gt;-H "Content-type: application/json" \&lt;BR /&gt;-d '{"appId":"116dbfae-7fb9-4983-8e23-5ccd8c508722","partial":true}'&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 13:43:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SAAS-API-Error/m-p/1827131#M15374</guid>
      <dc:creator>mstoler</dc:creator>
      <dc:date>2021-08-06T13:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik SAAS API Error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SAAS-API-Error/m-p/1828034#M15417</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6140"&gt;@mstoler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The syntax looks correct as per the help site&amp;nbsp;&lt;A href="https://qlik.dev/apis/rest/reloads#%23%2Fentries%2Freloads-post" target="_blank"&gt;https://qlik.dev/apis/rest/reloads#%23%2Fentries%2Freloads-post&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;When I check in the Qlik Sense SaaS backend logs based on your traceId, it complains about the backslash&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;{"&lt;/SPAN&gt;&lt;SPAN class="t h"&gt;caller&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;middleware.go:265&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class="t"&gt;error&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;invalid&lt;/SPAN&gt; &lt;SPAN class="t"&gt;character&lt;/SPAN&gt;&lt;SPAN&gt; '&lt;/SPAN&gt;&lt;SPAN class="t"&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;'' &lt;/SPAN&gt;&lt;SPAN class="t"&gt;looking&lt;/SPAN&gt; &lt;SPAN class="t"&gt;for&lt;/SPAN&gt; &lt;SPAN class="t"&gt;beginning&lt;/SPAN&gt; &lt;SPAN class="t"&gt;of&lt;/SPAN&gt; &lt;SPAN class="t"&gt;value&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class="t"&gt;level&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;error&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class="t"&gt;message&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;could&lt;/SPAN&gt; &lt;SPAN class="t"&gt;not&lt;/SPAN&gt; &lt;SPAN class="t"&gt;unmarshal&lt;/SPAN&gt; &lt;SPAN class="t"&gt;reload&lt;/SPAN&gt; &lt;SPAN class="t"&gt;request&lt;/SPAN&gt; &lt;SPAN class="t"&gt;JSON&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class="t"&gt;timestamp&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;2021-08-06T13:41:43.325917317Z&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class="t"&gt;traceId&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;67d14d4c1cd2410595748ce67ac04c88&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you try to remove all the backslashes and just have a one line cURL request and see if that makes any difference ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 14:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SAAS-API-Error/m-p/1828034#M15417</guid>
      <dc:creator>Damien_V</dc:creator>
      <dc:date>2021-08-11T14:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik SAAS API Error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SAAS-API-Error/m-p/1828643#M15427</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I just did a&amp;nbsp; bunch of requests today using the syntax below but using one line on Sat 8/14.&lt;/P&gt;&lt;P&gt;Please let me know what you see. I would like to get this working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl "https://your-tenant.us.qlikcloud.com/api/v1/reloads" \
 -X POST \
 -H "Authorization: Bearer &amp;lt;API-key&amp;gt;" \
 -H "Content-type: application/json" \
 -d '{"appId":"116dbfae-7fb9-4983-8e23-5ccd8c508722","partial":true}'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Aug 2021 17:49:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SAAS-API-Error/m-p/1828643#M15427</guid>
      <dc:creator>mstoler</dc:creator>
      <dc:date>2021-08-14T17:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik SAAS API Error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SAAS-API-Error/m-p/1829336#M15450</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6140"&gt;@mstoler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's still showing the same error&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
   error: invalid character '\'' looking for beginning of value
   level: error
   message: could not unmarshal reload request JSON
   timestamp: 2021-08-14T17:49:37.109386048Z
   traceId: 9c5601c7be832b5ec41eb2f5527a8bdd
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you make sure to remove all the backslashes when you did the request as a one line request ?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl "https://your-tenant.us.qlikcloud.com/api/v1/reloads" -X POST -H "Authorization: Bearer &amp;lt;API-key&amp;gt;" -H "Content-type: application/json" -d '{"appId":"116dbfae-7fb9-4983-8e23-5ccd8c508722","partial":true}'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also could you as well try the same in PowerShell and see if that's also the same issue ?&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/How-to-Generate-API-Keys-in-Qlik-Sense-SaaS-using-APIs/ta-p/1798718" target="_blank"&gt;https://community.qlik.com/t5/Knowledge/How-to-Generate-API-Keys-in-Qlik-Sense-SaaS-using-APIs/ta-p/1798718&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

$body='{"appId":"116dbfae-7fb9-4983-8e23-5ccd8c508722","partial":true}'
$hdrs = @{}
$hdrs.Add("Authorization","Bearer eyJhbGciOiJFUzM4NCIsImtp...NOofkzjW3R1fc4h")
$hdrs.Add("content-type","application/json")
$url = "https://yourtenant.eu.qlikcloud.com/api/v1/reloads"
Invoke-RestMethod -Uri $url -Method Post -Headers $hdrs -Body $body&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 18 Aug 2021 09:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SAAS-API-Error/m-p/1829336#M15450</guid>
      <dc:creator>Damien_V</dc:creator>
      <dc:date>2021-08-18T09:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik SAAS API Error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SAAS-API-Error/m-p/1829370#M15452</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I did try both.&lt;/P&gt;&lt;P&gt;I think what might help is if there is a working example using curl that shows me the exact syntax.&lt;/P&gt;&lt;P&gt;Where the documentation indicates&amp;nbsp;&lt;/P&gt;&lt;P&gt;Authorization: Bearer &amp;lt;API-key&amp;gt;"&lt;/P&gt;&lt;P&gt;Do we actually use the angle brackets?&amp;nbsp; I am not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Authorization: Bearer xxxxxx"&lt;/P&gt;&lt;P&gt;Is it possible to just show a working example without the confidential information?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Michale&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 10:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SAAS-API-Error/m-p/1829370#M15452</guid>
      <dc:creator>mstoler</dc:creator>
      <dc:date>2021-08-18T10:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik SAAS API Error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SAAS-API-Error/m-p/1829534#M15455</link>
      <description>&lt;P&gt;Hi Michale,&lt;/P&gt;&lt;P&gt;Just out of curiosity, are you using curl on windows or Mac? On windows the escape character is ^ and not \. Maybe that's the issue?&lt;/P&gt;&lt;P&gt;Angle brackets should not be included so you're right on the bearer format, like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Authorization: Bearer xxxxxx"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Björn&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 17:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SAAS-API-Error/m-p/1829534#M15455</guid>
      <dc:creator>Bjorn_Wedbratt</dc:creator>
      <dc:date>2021-08-18T17:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik SAAS API Error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SAAS-API-Error/m-p/1829539#M15456</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am just using a single line on Windows.&lt;/P&gt;&lt;P&gt;Do you have a working example of how to reload a Dashboard (take out the sensitive part)?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mchael&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 17:53:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SAAS-API-Error/m-p/1829539#M15456</guid>
      <dc:creator>mstoler</dc:creator>
      <dc:date>2021-08-18T17:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik SAAS API Error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SAAS-API-Error/m-p/1829544#M15458</link>
      <description>&lt;P&gt;And you also updated:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;tenant name&lt;/LI&gt;&lt;LI&gt;region&lt;/LI&gt;&lt;LI&gt;API-key (JWT)&lt;/LI&gt;&lt;LI&gt;AppId&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 18 Aug 2021 18:31:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SAAS-API-Error/m-p/1829544#M15458</guid>
      <dc:creator>han</dc:creator>
      <dc:date>2021-08-18T18:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik SAAS API Error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SAAS-API-Error/m-p/1829583#M15461</link>
      <description>&lt;P&gt;This seems to be an artifact of curl for Windows on my end. This is working for me:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;curl "https://&amp;lt;tenant&amp;gt;.&amp;lt;region&amp;gt;.qlikcloud.com/api/v1/reloads" -X POST -H "Authorization: Bearer &amp;lt;myApiKey&amp;gt;" -H "Content-type: application/json" -d "{\"appId\":\"&amp;lt;myAppId\"}"&lt;/LI-CODE&gt;&lt;P&gt;Single quotes (') around the body and not escaping the double quotes in the body isn't needed on curl launched via the Linux Subsystem for Windows install I have.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 22:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SAAS-API-Error/m-p/1829583#M15461</guid>
      <dc:creator>Levi_Turner</dc:creator>
      <dc:date>2021-08-18T22:59:28Z</dc:date>
    </item>
  </channel>
</rss>

