Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Everybody,
Is there a way to replace a loading script of an existing app via REST API in Qlik Cloud? There is the method app.setscript() via einigma.js, but unfortunately we cannot find a way directly in the REST API.
https://qlik.dev/apis/rest/apps
Thank you
Thanks for reply. Apart from above mentioned link.
Do you have any example or reference to see how to work with script methods?
Hi,
I attempt to use Postman's rest API to remove the script from the Qlik Sense SaaS. However, even when I send a delete request, it remains in the app. Even after deleting the script via the rest API, the script is still there.
Hi @Giriprasath,
According to the documentation and my tests you can't delete the current version of the Script files:
"Deletes a specific version of the script for an app. Fails if the version to delete is the current version."
https://qlik.dev/apis/rest/apps/#%23%2Fentries%2Fv1%2Fapps%2F-appId%2Fscripts%2F-version-delete
With that said, if your intention is just to clear the current Load Script, you can use the POST Script API:
https://qlik.dev/apis/rest/apps/#%23%2Fentries%2Fv1%2Fapps%2F-appId%2Fscripts-post
The DELETE API is to delete historical changes of the Load Script.