<?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: Publish to Managed Stream 404 error in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Publish-to-Managed-Stream-404-error/m-p/2447334#M20456</link>
    <description>&lt;P&gt;You're a Star!!! thanks very much!&lt;/P&gt;
&lt;P&gt;I was actually using the regional OAuth client which I'd presumed had full access rights to everything all the time... I guess not &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added it as a member, gave it the roles and that worked a treat...&amp;nbsp; Thanks for coming back to me on this&lt;/P&gt;</description>
    <pubDate>Wed, 01 May 2024 10:33:12 GMT</pubDate>
    <dc:creator>richardpearce60</dc:creator>
    <dc:date>2024-05-01T10:33:12Z</dc:date>
    <item>
      <title>Publish to Managed Stream 404 error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Publish-to-Managed-Stream-404-error/m-p/2447170#M20450</link>
      <description>&lt;P&gt;Hello...&lt;/P&gt;
&lt;P&gt;I'm trying to publish an app from a shared space to a managed space.&lt;/P&gt;
&lt;P&gt;Using, Rest, Qlik CLI, and Qlik SDK I'm getting the same 404 error. I created an automation and that worked okay.&lt;/P&gt;
&lt;P&gt;When I go to the URL for the app its fine, I return the json. Same if I look at /scripts, that works fine too&lt;/P&gt;
&lt;P&gt;However when I look at&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://xxxxxxx.us.qlikcloud.com/api/v1/apps/73b24e00-bf66-4228-8065-44d55eb5ba7b/publish" target="_blank"&gt;https://xxxxxxx.us.qlikcloud.com/api/v1/apps/73b24e00-bf66-4228-8065-44d55eb5ba7b/publish&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I get a 404 error, which is the same error all the API are returning.&lt;/P&gt;
&lt;P&gt;Everything else seems to be working fine, does anyone know why there's a 404 on this page?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;qlik app publish create 73b24e00-bf66-4228-8065-44d55eb5ba7b --spaceId="66311b85b13342805b11e332" -v&lt;/LI-CODE&gt;
&lt;P&gt;Response time: 643ms&lt;BR /&gt;Status: 404 Not Found&lt;BR /&gt;Error: 404 - Not Found (empty response)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Space details:&lt;/P&gt;
&lt;P&gt;"createdAt": "2024-04-30T16:25:41.937Z",&lt;BR /&gt;"createdBy": "6580520ea968030de1483f82",&lt;BR /&gt;"description": "",&lt;BR /&gt;"id": "66311b85b13342805b11e332",&lt;BR /&gt;"meta": {&lt;BR /&gt;"actions": [&lt;BR /&gt;"change_owner",&lt;BR /&gt;"create",&lt;BR /&gt;"delete",&lt;BR /&gt;"read",&lt;BR /&gt;"update"&lt;BR /&gt;],&lt;BR /&gt;"assignableRoles": [&lt;BR /&gt;"basicconsumer",&lt;BR /&gt;"consumer",&lt;BR /&gt;"contributor",&lt;BR /&gt;"dataconsumer",&lt;BR /&gt;"facilitator",&lt;BR /&gt;"operator",&lt;BR /&gt;"publisher"&lt;BR /&gt;],&lt;BR /&gt;"roles": []&lt;BR /&gt;},&lt;BR /&gt;"name": "Managed",&lt;BR /&gt;"ownerId": "6580520ea968030de1483f82",&lt;BR /&gt;"tenantId": "xxxxxxxxxxxxxxxxxxxxxxxx",&lt;BR /&gt;"type": "managed",&lt;BR /&gt;"updatedAt": "2024-04-30T16:25:41.937Z"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Application details&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"attributes": {&lt;BR /&gt;"_resourcetype": "app",&lt;BR /&gt;"createdDate": "2024-04-30T15:57:28.367Z",&lt;BR /&gt;"custom": {},&lt;BR /&gt;"description": "XXXXX",&lt;BR /&gt;"dynamicColor": "",&lt;BR /&gt;"encrypted": true,&lt;BR /&gt;"hasSectionAccess": false,&lt;BR /&gt;"id": "73b24e00-bf66-4228-8065-44d55eb5ba7b",&lt;BR /&gt;"isDirectQueryMode": false,&lt;BR /&gt;"lastReloadTime": "2024-04-30T17:03:42.230Z",&lt;BR /&gt;"modifiedDate": "2024-04-30T17:03:43.153Z",&lt;BR /&gt;"name": "Data Gateway",&lt;BR /&gt;"originAppId": "",&lt;BR /&gt;"owner": "",&lt;BR /&gt;"ownerId": "6580520ea968030de1483f82",&lt;BR /&gt;"publishTime": "",&lt;BR /&gt;"published": false,&lt;BR /&gt;"spaceId": "66311ae57c1e52122254af4d",&lt;BR /&gt;"thumbnail": "",&lt;BR /&gt;"usage": "ANALYTICS"&lt;BR /&gt;},&lt;BR /&gt;"create": [&lt;BR /&gt;{&lt;BR /&gt;"canCreate": true,&lt;BR /&gt;"resource": "sheet"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"canCreate": true,&lt;BR /&gt;"resource": "bookmark"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"canCreate": true,&lt;BR /&gt;"resource": "snapshot"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"canCreate": true,&lt;BR /&gt;"resource": "story"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"canCreate": true,&lt;BR /&gt;"resource": "dimension"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"canCreate": true,&lt;BR /&gt;"resource": "measure"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"canCreate": true,&lt;BR /&gt;"resource": "masterobject"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"canCreate": true,&lt;BR /&gt;"resource": "variable"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"privileges": [&lt;BR /&gt;"read",&lt;BR /&gt;"update",&lt;BR /&gt;"delete",&lt;BR /&gt;"export",&lt;BR /&gt;"change_owner",&lt;BR /&gt;"export_reduced"&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 17:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Publish-to-Managed-Stream-404-error/m-p/2447170#M20450</guid>
      <dc:creator>richardpearce60</dc:creator>
      <dc:date>2024-04-30T17:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Publish to Managed Stream 404 error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Publish-to-Managed-Stream-404-error/m-p/2447228#M20455</link>
      <description>&lt;P&gt;What are your roles on space&amp;nbsp;&lt;SPAN&gt;66311ae57c1e52122254af4d ? You're going to need either &lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Spaces/permissions-shared-space-prof-full.htm#:~:text=Publish%20or%20republish%20apps%20from%20this%20space" target="_self"&gt;Owner / Can Manage / Can Edit Data In Apps / Can Edit&lt;/A&gt;. I suspect that you're fine on this element, but worth checking. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;On the managed space (66311b85b13342805b11e332), you will need at least&amp;nbsp;&lt;STRONG&gt;Can Publish&amp;nbsp;&lt;/STRONG&gt;which I would expect to be enumerated on the&amp;nbsp;&lt;STRONG&gt;roles&lt;/STRONG&gt; section of the response. This makes me think you do not have a defined role on the managed space and instead are seeing the space as an artifact of being a TenantAdmin.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Example on my side:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;$shared_space_app_id = '52e8c129-ac4f-4e4f-ad69-b956760d410e'
$managed_space_id = '5e42f31c5d851d0001f8ca56'

qlik space get $managed_space_id
&amp;gt; {
&amp;gt;   "createdAt": "2020-02-11T18:31:56.92Z",
&amp;gt;   "createdBy": "&amp;lt;owner_id&amp;gt;",
&amp;gt;   "description": "",
&amp;gt;   "id": "5e42f31c5d851d0001f8ca56",
&amp;gt;   "meta": {
&amp;gt;     "actions": [
&amp;gt;       "change_owner",
&amp;gt;       "create",
&amp;gt;       "delete",
&amp;gt;       "publish",
&amp;gt;       "read",
&amp;gt;       "update"
&amp;gt;     ],
&amp;gt;     "assignableRoles": [
&amp;gt;       "basicconsumer",
&amp;gt;       "consumer",
&amp;gt;       "contributor",
&amp;gt;       "dataconsumer",
&amp;gt;       "facilitator",
&amp;gt;       "operator",
&amp;gt;       "publisher"
&amp;gt;     ],
&amp;gt;     "roles": [
&amp;gt;       "consumer",
&amp;gt;       "contributor",
&amp;gt;       "facilitator",
&amp;gt;       "publisher"
&amp;gt;     ]
&amp;gt;   },
&amp;gt;   "name": "&amp;lt;space name&amp;gt;",
&amp;gt;   "ownerId": "&amp;lt;owner_id&amp;gt;",
&amp;gt;   "tenantId": "&amp;lt;tenant_id&amp;gt;",
&amp;gt;   "type": "managed",
&amp;gt;   "updatedAt": "2021-04-22T13:21:48.907Z"
&amp;gt; }

qlik app publish create $shared_space_app_id --spaceId $managed_space_id

&amp;gt; {
&amp;gt;   "attributes": {
&amp;gt;     "_resourcetype": "app",
&amp;gt;     "createdDate": "2024-04-30T20:36:31.562Z",
&amp;gt;     "custom": {},
&amp;gt;     "description": "",
&amp;gt;     "dynamicColor": "",
&amp;gt;     "encrypted": true,
&amp;gt;     "hasSectionAccess": false,
&amp;gt;     "id": "55ed2aaf-a6af-4b18-b840-3e1aedb1b53f",
&amp;gt;     "isDirectQueryMode": false,
&amp;gt;     "lastReloadTime": "2024-04-30T20:35:25.196Z",
&amp;gt;     "modifiedDate": "2024-04-30T20:36:32.347Z",
&amp;gt;     "name": "&amp;lt;app_name&amp;gt;",
&amp;gt;     "originAppId": "52e8c129-ac4f-4e4f-ad69-b956760d410e",
&amp;gt;     "owner": "&amp;lt;owner&amp;gt;",
&amp;gt;     "ownerId": "&amp;lt;owner_id&amp;gt;",
&amp;gt;     "publishTime": "2024-04-30T20:36:31.556Z",
&amp;gt;     "published": false,
&amp;gt;     "spaceId": "5e42f31c5d851d0001f8ca56",
&amp;gt;     "thumbnail": "",
&amp;gt;     "usage": "ANALYTICS"
&amp;gt;   },
&amp;gt;   "create": [
&amp;gt;     {
&amp;gt;       "canCreate": true,
&amp;gt;       "resource": "sheet"
&amp;gt;     },
&amp;gt;     {
&amp;gt;       "canCreate": true,
&amp;gt;       "resource": "bookmark"
&amp;gt;     },
&amp;gt;     {
&amp;gt;       "canCreate": true,
&amp;gt;       "resource": "snapshot"
&amp;gt;     },
&amp;gt;     {
&amp;gt;       "canCreate": true,
&amp;gt;       "resource": "story"
&amp;gt;     },
&amp;gt;     {
&amp;gt;       "canCreate": false,
&amp;gt;       "resource": "dimension"
&amp;gt;     },
&amp;gt;     {
&amp;gt;       "canCreate": false,
&amp;gt;       "resource": "measure"
&amp;gt;     },
&amp;gt;     {
&amp;gt;       "canCreate": false,
&amp;gt;       "resource": "masterobject"
&amp;gt;     },
&amp;gt;     {
&amp;gt;       "canCreate": true,
&amp;gt;       "resource": "variable"
&amp;gt;     }
&amp;gt;   ],
&amp;gt;   "privileges": [
&amp;gt;     "read",
&amp;gt;     "update",
&amp;gt;     "delete",
&amp;gt;     "reload",
&amp;gt;     "export",
&amp;gt;     "publish",
&amp;gt;     "change_owner",
&amp;gt;     "change_space",
&amp;gt;     "export_reduced",
&amp;gt;     "source"
&amp;gt;   ]
&amp;gt; }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 20:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Publish-to-Managed-Stream-404-error/m-p/2447228#M20455</guid>
      <dc:creator>Levi_Turner</dc:creator>
      <dc:date>2024-04-30T20:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Publish to Managed Stream 404 error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Publish-to-Managed-Stream-404-error/m-p/2447334#M20456</link>
      <description>&lt;P&gt;You're a Star!!! thanks very much!&lt;/P&gt;
&lt;P&gt;I was actually using the regional OAuth client which I'd presumed had full access rights to everything all the time... I guess not &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added it as a member, gave it the roles and that worked a treat...&amp;nbsp; Thanks for coming back to me on this&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 10:33:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Publish-to-Managed-Stream-404-error/m-p/2447334#M20456</guid>
      <dc:creator>richardpearce60</dc:creator>
      <dc:date>2024-05-01T10:33:12Z</dc:date>
    </item>
  </channel>
</rss>

