Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
prismacalota
Partner - Contributor
Partner - Contributor

Qlik Cloud - Change Load script through REST API


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

Labels (2)
12 Replies
jainisha
Partner - Contributor II
Partner - Contributor II

Thanks for reply. Apart from above mentioned link.

Do you have any example or reference to see how to work with script methods?

Giriprasath
Contributor II
Contributor II

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.

marksouzacosta
Partner - Specialist
Partner - Specialist

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.

Read more at Data Voyagers - datavoyagers.net