<?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: API - Replace an existing published dashboard in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/API-Replace-an-existing-published-dashboard/m-p/2457916#M20708</link>
    <description>&lt;P&gt;We do have a few examples of this flow, take a look at&amp;nbsp;&lt;A href="https://github.com/qlik-oss/qlik-cloud-examples/blob/665aff509acf5217366efa396c926bbd6abad11a/qlik.dev/tutorials/platform-operations/sdk-python/tenant_deploy_content.py#L93" target="_blank"&gt;https://github.com/qlik-oss/qlik-cloud-examples/blob/665aff509acf5217366efa396c926bbd6abad11a/qlik.dev/tutorials/platform-operations/sdk-python/tenant_deploy_content.py#L93&lt;/A&gt;&amp;nbsp;and let us know if that helps?&lt;/P&gt;</description>
    <pubDate>Thu, 30 May 2024 15:17:47 GMT</pubDate>
    <dc:creator>Dave_Channon</dc:creator>
    <dc:date>2024-05-30T15:17:47Z</dc:date>
    <item>
      <title>API - Replace an existing published dashboard</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/API-Replace-an-existing-published-dashboard/m-p/2457557#M20696</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;I'm importing a new application into a SaaS tenant using Qlik SDK (Post / Put)&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="python"&gt;qlik.apps.import_app(data=f)&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;All good! from there, I'm publishing it to a managed space:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="python"&gt;published_app = application.publish({"spaceId": "6657348d053e38f4f18fedeb"})&lt;/LI-CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;All good! &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Now at some point in the future, I'm going to &lt;STRONG&gt;import a new&lt;/STRONG&gt; &lt;STRONG&gt;application&lt;/STRONG&gt; into the tenant and want to overwrite the one I've previously published. I can do that in the HUB as it gives you the option when you're about to publish an app with the same name. However, I can't find that in the APIs&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;So if the new app imported is '&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;ead56dd2-cd4e-460f-a0b3-61e5b81b6aa4&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;and the existing app already published is '&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;90276b41-02fb-4a19-b2c0-0c25d3c0da37&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;I've tried:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="python"&gt;republished_app = application.set_publish({"targetId": "90276b41-02fb-4a19-b2c0-0c25d3c0da37"})&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;also tried&lt;/DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="python"&gt;published_app = application.publish({"spaceId": "6657348d053e38f4f18fedeb","originAppId":"90276b41-02fb-4a19-b2c0-0c25d3c0da37","moveApp": True})&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Tried a few other combinations but nothing has worked. I always seem to get an error or a new dashboard. It's important not to create a new application as I want to keep the URLs constant&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Any help would be appreciated!&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 May 2024 15:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/API-Replace-an-existing-published-dashboard/m-p/2457557#M20696</guid>
      <dc:creator>richardpearce60</dc:creator>
      <dc:date>2024-05-29T15:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: API - Replace an existing published dashboard</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/API-Replace-an-existing-published-dashboard/m-p/2457682#M20701</link>
      <description>&lt;P&gt;I'm not sure what the exact command would be in the SDK.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;however from the Rest API's you would be doing a PUT&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://qlik.dev/apis/rest/apps/#%23%2Fentries%2Fv1%2Fapps%2F-appId%2Fpublish-put" target="_blank"&gt;https://qlik.dev/apis/rest/apps/#%23%2Fentries%2Fv1%2Fapps%2F-appId%2Fpublish-put&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Republishes a published app to a managed space,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; However because you have imported a new App, that App ID is not associated with the published copy, so when making the api call, in the Request Body you need to specify&amp;nbsp;checkOriginAppId=false&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 04:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/API-Replace-an-existing-published-dashboard/m-p/2457682#M20701</guid>
      <dc:creator>Marc</dc:creator>
      <dc:date>2024-05-30T04:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: API - Replace an existing published dashboard</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/API-Replace-an-existing-published-dashboard/m-p/2457912#M20706</link>
      <description>&lt;P&gt;Thanks Marc it worked. I'd seen this flag but not used it (or used it properly)&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;republished_app = application.set_publish({"targetId": "90276b41-02fb-4a19-b2c0-0c25d3c0da37","checkOriginAppId":False})&lt;/LI-CODE&gt;
&lt;P&gt;I've been trying to use the SDK when I can although I'm not 100% convinced with it... it does sometimes give additional help (not every time)&lt;/P&gt;
&lt;P&gt;The code above would be a PUT... So (for others) targetId is the application id currently published and the flag means overwrite (no need for a space id)&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 15:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/API-Replace-an-existing-published-dashboard/m-p/2457912#M20706</guid>
      <dc:creator>richardpearce60</dc:creator>
      <dc:date>2024-05-30T15:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: API - Replace an existing published dashboard</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/API-Replace-an-existing-published-dashboard/m-p/2457916#M20708</link>
      <description>&lt;P&gt;We do have a few examples of this flow, take a look at&amp;nbsp;&lt;A href="https://github.com/qlik-oss/qlik-cloud-examples/blob/665aff509acf5217366efa396c926bbd6abad11a/qlik.dev/tutorials/platform-operations/sdk-python/tenant_deploy_content.py#L93" target="_blank"&gt;https://github.com/qlik-oss/qlik-cloud-examples/blob/665aff509acf5217366efa396c926bbd6abad11a/qlik.dev/tutorials/platform-operations/sdk-python/tenant_deploy_content.py#L93&lt;/A&gt;&amp;nbsp;and let us know if that helps?&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 15:17:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/API-Replace-an-existing-published-dashboard/m-p/2457916#M20708</guid>
      <dc:creator>Dave_Channon</dc:creator>
      <dc:date>2024-05-30T15:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: API - Replace an existing published dashboard</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/API-Replace-an-existing-published-dashboard/m-p/2457920#M20709</link>
      <description>&lt;P&gt;Thanks Dave! Just read through them and they do help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 15:38:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/API-Replace-an-existing-published-dashboard/m-p/2457920#M20709</guid>
      <dc:creator>richardpearce60</dc:creator>
      <dc:date>2024-05-30T15:38:25Z</dc:date>
    </item>
  </channel>
</rss>

