<?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 Qlik SDK post param passing in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SDK-post-param-passing/m-p/2444453#M20409</link>
    <description>&lt;P&gt;Hi, I'm working with Qlik Sense SaaS using an OAuth2 connection to one of my tenants with Python3 in Ubuntu.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The handshake works fine and I'm able to hit the rest connector and get information about my managed spaces.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;#Sending params to the API request
payload={'type':'managed'}
response = client.rest(path="/spaces", method="get",params=payload).json()
print(json.dumps(response, indent=4, separators=(". ", " = ")))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've now tried creating a space. My code is as follows and fails with a bad request error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;payload={"name":"string","type":"shared","description":"string"}
response = client.rest(path="/spaces", method="post", params=payload)
print(response)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm hopeful it's a simple fix. The scope I'm using is admin_classic&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2024 17:01:54 GMT</pubDate>
    <dc:creator>richardpearce60</dc:creator>
    <dc:date>2024-04-24T17:01:54Z</dc:date>
    <item>
      <title>Qlik SDK post param passing</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SDK-post-param-passing/m-p/2444453#M20409</link>
      <description>&lt;P&gt;Hi, I'm working with Qlik Sense SaaS using an OAuth2 connection to one of my tenants with Python3 in Ubuntu.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The handshake works fine and I'm able to hit the rest connector and get information about my managed spaces.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;#Sending params to the API request
payload={'type':'managed'}
response = client.rest(path="/spaces", method="get",params=payload).json()
print(json.dumps(response, indent=4, separators=(". ", " = ")))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've now tried creating a space. My code is as follows and fails with a bad request error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;payload={"name":"string","type":"shared","description":"string"}
response = client.rest(path="/spaces", method="post", params=payload)
print(response)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm hopeful it's a simple fix. The scope I'm using is admin_classic&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 17:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SDK-post-param-passing/m-p/2444453#M20409</guid>
      <dc:creator>richardpearce60</dc:creator>
      <dc:date>2024-04-24T17:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik SDK post param passing</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SDK-post-param-passing/m-p/2444770#M20412</link>
      <description>&lt;P&gt;Managed to resolve this and it was frustrating simple. Had to use data rather than params:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;payload={'name':'The API Made this 2','type':'shared','description':'Long Description here'}
response = client.rest(path="/spaces", method="post", data=payload).json()
print(json.dumps(response, indent=4, separators=(". ", " = ")))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 25 Apr 2024 11:28:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-SDK-post-param-passing/m-p/2444770#M20412</guid>
      <dc:creator>richardpearce60</dc:creator>
      <dc:date>2024-04-25T11:28:05Z</dc:date>
    </item>
  </channel>
</rss>

