<?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: Data files POST api not working in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Data-files-POST-api-not-working/m-p/2505292#M21809</link>
    <description>&lt;P&gt;How exactly did you solve the "name"? How exactly should we write in the Json part?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Visual_Intelligence_Support_0-1739260780184.png" style="width: 861px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177403iAFE5B6EA5A08F8FD/image-dimensions/861x321?v=v2" width="861" height="321" role="button" title="Visual_Intelligence_Support_0-1739260780184.png" alt="Visual_Intelligence_Support_0-1739260780184.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fei&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2025 08:16:49 GMT</pubDate>
    <dc:creator>Visual_Intelligence_Support</dc:creator>
    <dc:date>2025-02-11T08:16:49Z</dc:date>
    <item>
      <title>Data files POST api not working</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Data-files-POST-api-not-working/m-p/2014824#M17725</link>
      <description>&lt;P&gt;Hi, I am sending csv file using data-files POST api, but It sends the error "{"errors":[{"title":"Request must contain 'name' parameter when POSTing a new file.","code":"HTTP-400"}]}".&lt;/P&gt;
&lt;P&gt;I am using curl command and my request body is:&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;curl "&lt;A href="https://duqm689wu8vyw3p.sg.qlikcloud.com/api/v1/data-files" target="_blank"&gt;https://duqm689wu8vyw3p.sg.qlikcloud.com/api/v1/data-files&lt;/A&gt;" \&lt;BR /&gt;-X POST \&lt;BR /&gt;-H "Authorization: Bearer Token"\&lt;/P&gt;
&lt;P&gt;-H "Content-type: multipart/form-data" \&lt;BR /&gt;-F "file=@Desktop/cities.csv"&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 14:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Data-files-POST-api-not-working/m-p/2014824#M17725</guid>
      <dc:creator>shivamprakash</dc:creator>
      <dc:date>2022-12-09T14:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Data files POST api not working</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Data-files-POST-api-not-working/m-p/2015229#M17736</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;have you tried to add the `name` parameter? ex:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl "https://duqm689wu8vyw3p.sg.qlikcloud.com/api/v1/data-files" \
-X POST \
-H "Authorization: Bearer Token"\
-H "Content-type: multipart/form-data" \
-F "file=@Desktop/cities.csv" \
-F "name=..."&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 07:03:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Data-files-POST-api-not-working/m-p/2015229#M17736</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2022-12-12T07:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Data files POST api not working</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Data-files-POST-api-not-working/m-p/2015239#M17737</link>
      <description>&lt;P&gt;Hi Aiham,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried the same, but it throws same error. I have attached the error image for your refrence.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 07:29:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Data-files-POST-api-not-working/m-p/2015239#M17737</guid>
      <dc:creator>shivamprakash</dc:creator>
      <dc:date>2022-12-12T07:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Data files POST api not working</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Data-files-POST-api-not-working/m-p/2015308#M17738</link>
      <description>&lt;P&gt;Ho again,&lt;BR /&gt;Yes you are right, after doublechecking the API spec, the right param&amp;nbsp; should be `json` with an object value&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl "https://duqm689wu8vyw3p.sg.qlikcloud.com/api/v1/data-files" \
-X POST \
-H "Authorization: Bearer Token"\
-H "Content-type: multipart/form-data" \
-F "file=@Desktop/cities.csv" \
-F "json={\"name\":\"test.csv\"}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;ref ink to the spec:&amp;nbsp;&lt;A href="https://qlik.dev/apis/rest/data-files#%23%2Fentries%2Fv1%2Fdata-files-post" target="_blank"&gt;https://qlik.dev/apis/rest/data-files#%23%2Fentries%2Fv1%2Fdata-files-post&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I haven't tested this code, so I am a little bit unsure about the escaping; If you make it works please let use know.&lt;BR /&gt;&lt;BR /&gt;I also found out that the generated curl/cli/node examples in the API reference page are wrong - we will report this as a bug.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 09:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Data-files-POST-api-not-working/m-p/2015308#M17738</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2022-12-12T09:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Data files POST api not working</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Data-files-POST-api-not-working/m-p/2015390#M17741</link>
      <description>&lt;P&gt;Hi, Thanks for your response. It is working fine.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 12:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Data-files-POST-api-not-working/m-p/2015390#M17741</guid>
      <dc:creator>shivamprakash</dc:creator>
      <dc:date>2022-12-12T12:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Data files POST api not working</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Data-files-POST-api-not-working/m-p/2098477#M18914</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to connect API REST with Qlik. the api needs a csv file as input parameter but the error is:&amp;nbsp;&lt;/P&gt;
&lt;DIV class="edc_error"&gt;Connector reply error: Unknown substring, string, or value at (1,7): '*'&lt;/DIV&gt;
&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;// Realizar la solicitud POST a la API utilizando RestPost()&lt;BR /&gt;RestConnectorMasterTable:&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM JSON (wrap on) "root"&lt;BR /&gt;WITH CONNECTION(&lt;BR /&gt;Url "$(url)",&lt;BR /&gt;HTTPHEADER "Content-Type" "multipart/form-data",&lt;BR /&gt;BODY "file=@C:/Users/ol_av/OneDrive/Documentos/PROYECTO MLA/PROGRAMACION MLA/MATRIZ MLA/SCRIPTS/FLASK/data.csv"&lt;BR /&gt;);&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2023 18:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Data-files-POST-api-not-working/m-p/2098477#M18914</guid>
      <dc:creator>olgaavalos</dc:creator>
      <dc:date>2023-07-30T18:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Data files POST api not working</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Data-files-POST-api-not-working/m-p/2104625#M18986</link>
      <description>&lt;P&gt;Hi&amp;nbsp;olgaavalos,&lt;/P&gt;
&lt;P&gt;I can't comment on the file upload part as I have never done that through Qlik but I believe your error is because of the SQL statement.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Firstly try changing it to&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SQL SELECT "__KEY_root"
FROM JSON (wrap on) "root" PK "__KEY_root"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now this should allow the api call to work. If you need details from the response you would have to add more to the query but for now this would allow it to work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;e.g. If your response is something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
    "status": {
        "code": 200,
        "message": "Success"
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then to get both values you need to do&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SELECT 
	"__KEY_root",
	(SELECT
		"message",	
		"code",			
		"__FK_status"
		from "status" FK "__FK_status")
			
FROM JSON (wrap on) "root" PK "__KEY_root"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 16:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Data-files-POST-api-not-working/m-p/2104625#M18986</guid>
      <dc:creator>QlikMo</dc:creator>
      <dc:date>2023-08-10T16:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data files POST api not working</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Data-files-POST-api-not-working/m-p/2505292#M21809</link>
      <description>&lt;P&gt;How exactly did you solve the "name"? How exactly should we write in the Json part?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Visual_Intelligence_Support_0-1739260780184.png" style="width: 861px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177403iAFE5B6EA5A08F8FD/image-dimensions/861x321?v=v2" width="861" height="321" role="button" title="Visual_Intelligence_Support_0-1739260780184.png" alt="Visual_Intelligence_Support_0-1739260780184.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fei&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 08:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Data-files-POST-api-not-working/m-p/2505292#M21809</guid>
      <dc:creator>Visual_Intelligence_Support</dc:creator>
      <dc:date>2025-02-11T08:16:49Z</dc:date>
    </item>
  </channel>
</rss>

