<?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 QRS API move app in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-move-app/m-p/1752279#M13370</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I cannot find an API for moving a published app to another stream.&lt;/STRONG&gt; In QRS API, you can copy an app, publish the copied app and delete the old app. However, this is not acceptable for us because the app_id changes within this process.&lt;/P&gt;&lt;P&gt;I am also open for other API (Engine API, etc.) as long as I can execute them from Javascript.&lt;/P&gt;&lt;P&gt;Any ideas? Thanks a lot!!&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Moritz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 17:58:25 GMT</pubDate>
    <dc:creator>moritzreinhard2</dc:creator>
    <dc:date>2024-11-16T17:58:25Z</dc:date>
    <item>
      <title>QRS API move app</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-move-app/m-p/1752279#M13370</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I cannot find an API for moving a published app to another stream.&lt;/STRONG&gt; In QRS API, you can copy an app, publish the copied app and delete the old app. However, this is not acceptable for us because the app_id changes within this process.&lt;/P&gt;&lt;P&gt;I am also open for other API (Engine API, etc.) as long as I can execute them from Javascript.&lt;/P&gt;&lt;P&gt;Any ideas? Thanks a lot!!&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Moritz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-move-app/m-p/1752279#M13370</guid>
      <dc:creator>moritzreinhard2</dc:creator>
      <dc:date>2024-11-16T17:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: QRS API move app</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-move-app/m-p/1752838#M13379</link>
      <description>&lt;P&gt;Some of this is version dependent but if you're on something modern then either should work. There are technically two endpoints which can use both of which I have examples using the Qlik-Cli-Windows PowerShell library:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/levi-turner/QlikSenseScripts/blob/master/qs-cli/qs-cli-move_app-hub_method.ps1" target="_blank"&gt;https://github.com/levi-turner/QlikSenseScripts/blob/master/qs-cli/qs-cli-move_app-hub_method.ps1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/levi-turner/QlikSenseScripts/blob/master/qs-cli/qs-cli-move_app-qmc_method.ps1" target="_blank"&gt;https://github.com/levi-turner/QlikSenseScripts/blob/master/qs-cli/qs-cli-move_app-qmc_method.ps1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I personally prefer the QMC method since it's more extendable since it can leverage certificates for auth.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 13:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-move-app/m-p/1752838#M13379</guid>
      <dc:creator>Levi_Turner</dc:creator>
      <dc:date>2020-10-15T13:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: QRS API move app</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-move-app/m-p/1752937#M13381</link>
      <description>&lt;P&gt;I think it's just a question of changing the "stream.id" property of the app. So do a GET on this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/September2020/APIs/RepositoryServiceAPI/index.html?page=387" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/September2020/APIs/RepositoryServiceAPI/index.html?page=387&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Change stream.id to the ID of the destination stream, and the do a PUT on this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/September2020/APIs/RepositoryServiceAPI/index.html?page=692" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/September2020/APIs/RepositoryServiceAPI/index.html?page=692&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 15:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-move-app/m-p/1752937#M13381</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2020-10-15T15:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: QRS API move app</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-move-app/m-p/1754031#M13403</link>
      <description>&lt;P&gt;Hi Levi_Turner,&lt;/P&gt;&lt;P&gt;that sounds good. However I have to execute it from Javascript, and this qlik-cli is from command line. Maybe there is a way to write command line commands in javascript but that it seems to me to cumbersome.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 10:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-move-app/m-p/1754031#M13403</guid>
      <dc:creator>moritzreinhard2</dc:creator>
      <dc:date>2020-10-20T10:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: QRS API move app</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-move-app/m-p/1754038#M13404</link>
      <description>&lt;P&gt;Hi Yko,&lt;/P&gt;&lt;P&gt;probably this is exactly what I want. But how to change the stream.id of an app exactly.&amp;nbsp; I only see&amp;nbsp;&lt;/P&gt;&lt;P&gt;put /qrs/app/&lt;SPAN&gt;046b6c7f-0b8a-43b9-b35d-6489e6daee91&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is it something like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;put /qrs/app/046b6c7f-0b8a-43b9-b35d-6489e6daee91&amp;amp;stream.id=5434956a-0008-4e69-bf01-dc38564b6fd7&amp;nbsp; &amp;nbsp; &amp;nbsp;???&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't find an example. Could you give me an example? Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Moritz&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 10:36:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-move-app/m-p/1754038#M13404</guid>
      <dc:creator>moritzreinhard2</dc:creator>
      <dc:date>2020-10-20T10:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: QRS API move app</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-move-app/m-p/1754142#M13409</link>
      <description>&lt;P&gt;The new values goes in the body of the PUT request. So pseudo-code something like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var appInfo = GET('/qrs/app/046b6c7f-0b8a-43b9-b35d-6489e6daee91');
appInfo.stream.id = '5434956a-0008-4e69-bf01-dc38564b6fd7';
PUT('/qrs/app/046b6c7f-0b8a-43b9-b35d-6489e6daee91', appInfo);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 14:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-move-app/m-p/1754142#M13409</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2020-10-20T14:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: QRS API move app</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-move-app/m-p/1756198#M13430</link>
      <description>&lt;P&gt;That works! Here the javascript code I used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var httpRequest6 = new XMLHttpRequest();
httpRequest6.open("GET", baseUrl+'/qrs/app/'+AppID_Target+'?xrfkey=abcdefghijklmnop', true);
httpRequest6.setRequestHeader("x-Qlik-Xrfkey", xrfkey);
httpRequest6.send();
httpRequest6.onload= function() {
var qrsResponse = JSON.parse(httpRequest6.response);
qrsResponse.stream.id='83e32f65-b361-48f9-905c-befab5f49993';
var httpRequest7 = new XMLHttpRequest();
httpRequest7.open("PUT", baseUrl+'/qrs/app/'+AppID_Target+'?xrfkey=abcdefghijklmnop', true);
httpRequest7.setRequestHeader("x-Qlik-Xrfkey", xrfkey);
httpRequest7.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
httpRequest7.send( JSON.stringify(qrsResponse) );
httpRequest7.onload= function() {
  window.alert(httpRequest7.response);
};&lt;/LI-CODE&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, 27 Oct 2020 11:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-move-app/m-p/1756198#M13430</guid>
      <dc:creator>moritzreinhard2</dc:creator>
      <dc:date>2020-10-27T11:48:59Z</dc:date>
    </item>
  </channel>
</rss>

