Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
We have a unique OEM use case where we would like to duplicate an App from one Shared Space to another Shared Space, but without any data. So, essentially there are two parts to this question:
1. Can an App be duplicated across Spaces?
2. Can an App be duplicated without the loaded data?
From what I've explored, both through the UI and APIs, neither is currently possible. Can someone please confirm so I can be thorough?
1. This is not really recommended as it may conflict with same app name thought different App ID's. If you force, You can still do that.
2. I have 2 parts,
2.1) If you have app already and you don't want any data (Please export with out app and then import and publish it)
2.2) If you have an app from #1, You can do the same but don't schedule any tasks (With this the data won't get update here).
No issue with the same name of an app in multiple spaces, and you can duplicate an app by copying it. See https://qlik.dev/apis/rest/apps/#%23%2Fentries%2Fv1%2Fapps%2F-appId%2Fcopy-post and specifying the new spaceId in the body of the request. If you do this in the UI, it'll create the copy in the same space and change the name of the app.
On number 2, per @Anil_Babu_Samineni this isn't possible with the REST APIs. You can only duplicate with data; or export without data and re-import using the usual APIs. Or remove the load script, reload the app, then add the load script again; unbuild and rebuild the app from definition, etc. There's no direct path today.
1. This is not really recommended as it may conflict with same app name thought different App ID's. If you force, You can still do that.
2. I have 2 parts,
2.1) If you have app already and you don't want any data (Please export with out app and then import and publish it)
2.2) If you have an app from #1, You can do the same but don't schedule any tasks (With this the data won't get update here).
No issue with the same name of an app in multiple spaces, and you can duplicate an app by copying it. See https://qlik.dev/apis/rest/apps/#%23%2Fentries%2Fv1%2Fapps%2F-appId%2Fcopy-post and specifying the new spaceId in the body of the request. If you do this in the UI, it'll create the copy in the same space and change the name of the app.
On number 2, per @Anil_Babu_Samineni this isn't possible with the REST APIs. You can only duplicate with data; or export without data and re-import using the usual APIs. Or remove the load script, reload the app, then add the load script again; unbuild and rebuild the app from definition, etc. There's no direct path today.
@Dave_Channon Thanks for the info. I was originally getting a 404 when using the endpoint to copy an App across Spaces, but I realized that the M2M OAuth client used did not have the appropriate permission in the target Space. Once I correctly set the permission in the Space I was able to copy the App across Spaces.
Awesome, thanks @yosuke-coupa for the update