<?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 Creating data-sets using APIs in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Creating-data-sets-using-APIs/m-p/2548993#M22883</link>
    <description>&lt;P class=""&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;Over the last few days I've been testing the Data Sets APIs &lt;A href="https://qlik.dev/apis/rest/data-sets/" target="_blank" rel="noopener"&gt;https://qlik.dev/apis/rest/data-sets/&lt;/A&gt; and I'm having some trouble understanding how to properly create a dataset using the POST method.&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;In the documentation, some properties are required in the request body, but their purpose is not very clear to me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;In particular:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;qri&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;secureQri&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;&lt;SPAN&gt;These fields seem to be mandatory, but I can't understand:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;how they are generated&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;how they should be calculated&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;or how they are supposed to be obtained when creating a dataset from scratch via API.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;&lt;SPAN&gt;I already have a valid Snowflake Data Connection and I can create datasets through the Qlik UI wizard without issues.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;However, when trying to create the same dataset through APIs, I'm struggling to understand how &lt;/SPAN&gt;&lt;SPAN&gt;qri&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN&gt;secureQri&lt;/SPAN&gt;&lt;SPAN&gt; should be populated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Has anyone successfully used this API or figured out the correct workflow?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Cristian&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2026 16:32:14 GMT</pubDate>
    <dc:creator>cristian_dalsanto</dc:creator>
    <dc:date>2026-05-12T16:32:14Z</dc:date>
    <item>
      <title>Creating data-sets using APIs</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Creating-data-sets-using-APIs/m-p/2548993#M22883</link>
      <description>&lt;P class=""&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;Over the last few days I've been testing the Data Sets APIs &lt;A href="https://qlik.dev/apis/rest/data-sets/" target="_blank" rel="noopener"&gt;https://qlik.dev/apis/rest/data-sets/&lt;/A&gt; and I'm having some trouble understanding how to properly create a dataset using the POST method.&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;In the documentation, some properties are required in the request body, but their purpose is not very clear to me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;In particular:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;qri&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;secureQri&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;&lt;SPAN&gt;These fields seem to be mandatory, but I can't understand:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;how they are generated&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;how they should be calculated&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;or how they are supposed to be obtained when creating a dataset from scratch via API.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;&lt;SPAN&gt;I already have a valid Snowflake Data Connection and I can create datasets through the Qlik UI wizard without issues.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;However, when trying to create the same dataset through APIs, I'm struggling to understand how &lt;/SPAN&gt;&lt;SPAN&gt;qri&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN&gt;secureQri&lt;/SPAN&gt;&lt;SPAN&gt; should be populated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Has anyone successfully used this API or figured out the correct workflow?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Cristian&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2026 16:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Creating-data-sets-using-APIs/m-p/2548993#M22883</guid>
      <dc:creator>cristian_dalsanto</dc:creator>
      <dc:date>2026-05-12T16:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating data-sets using APIs</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Creating-data-sets-using-APIs/m-p/2549102#M22884</link>
      <description>&lt;P&gt;Hey Cristian,&lt;BR /&gt;&lt;BR /&gt;These fields are all defined here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://qlik.dev/apis/rest/data-sets/" target="_blank"&gt;https://qlik.dev/apis/rest/data-sets/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please let me know if this helps and if not, I am happy to assist further.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2026 20:34:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Creating-data-sets-using-APIs/m-p/2549102#M22884</guid>
      <dc:creator>Greg_Taffer</dc:creator>
      <dc:date>2026-05-13T20:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creating data-sets using APIs</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Creating-data-sets-using-APIs/m-p/2549114#M22886</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/81045"&gt;@cristian_dalsanto&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;We can't use this API to create Datasets based on Databases. This API was meant to be used to file based sources - I know, the documentation is terrible on this one.&lt;/P&gt;&lt;P&gt;So, there is an &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;undocumented path&lt;/STRONG&gt;&lt;/FONT&gt;, easily discoverable if you use Developer Tools in any browser.&lt;/P&gt;&lt;P&gt;Long story short, Qlik uses a different endpoint for Database related Datasets:&lt;BR /&gt;&lt;SPAN&gt;&lt;A target="_blank" rel="noopener"&gt;https://&amp;lt;your-tenant&amp;gt;.qlikcloud.com/api/v1/catalog/catalog-integration/actions/create-hierarchy-for-connected-datasets&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You can call this endpoint using POST method, use same bearer authorization you have for other endpoints, and the body message is pretty nasty. See an example below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "spaceId": "66c4b5b6314eb13bee4f457a",
    "connectionId": "597d85bc-4845-4167-b7ff-c1eab16216a3",
    "schema": "public",
    "tables": [
        {
            "tableName": "fact_review_item",
            "selectionScript": "[fact_review_item]:\r\nSELECT \"review_item_id\",\r\n\t\"review_id\",\r\n\t\"item_code\",\r\n\t\"result\",\r\n\t\"failure_description\",\r\n\t\"suggested_fix\"\r\nFROM \"public\".\"fact_review_item\";",
            "additionalProperties": {
                "fields": "[{\"name\":\"review_item_id\",\"fullName\":\"review_item_id\",\"nativeType\":\"uuid\",\"isKey\":true,\"isSelected\":true},{\"name\":\"review_id\",\"fullName\":\"review_id\",\"nativeType\":\"uuid\",\"isSelected\":true},{\"name\":\"item_code\",\"fullName\":\"item_code\",\"nativeType\":\"varchar\",\"isSelected\":true},{\"name\":\"result\",\"fullName\":\"result\",\"nativeType\":\"review_result\",\"isSelected\":true},{\"name\":\"failure_description\",\"fullName\":\"failure_description\",\"nativeType\":\"text\",\"isSelected\":true},{\"name\":\"suggested_fix\",\"fullName\":\"suggested_fix\",\"nativeType\":\"text\",\"isSelected\":true}]",
                "tableRequestParameters": "[{\"name\":\"owner\",\"value\":\"public\"}]"
            }
        }
    ]
}&lt;/LI-CODE&gt;&lt;P&gt;I haven't &lt;STRONG&gt;exhaustively&lt;/STRONG&gt; tested this message body, but it &lt;STRONG&gt;appears&lt;/STRONG&gt; that all fields are mandatory.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mark Costa&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2026 02:39:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Creating-data-sets-using-APIs/m-p/2549114#M22886</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2026-05-14T02:39:34Z</dc:date>
    </item>
  </channel>
</rss>

