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)
2 Solutions

Accepted Solutions
DaveChannon
Employee
Employee

Hi @prismacalota 

To add to Alex's comments, on the product roadmap side, we are currently working on new endpoints for the apps REST API you've linked above, which we are hoping to release early in Q1 2023. 

This will provide you the ability to retrieve the latest load script for an app, and post a new load script back to the app using REST & OAuth.

View solution in original post

DaveChannon
Employee
Employee

@prismacalota just a heads up that we today released the full set of endpoints for accessing and updating Qlik Sense app load scripts: https://qlik.dev/apis/rest/apps

DaveChannon_0-1675775441358.png

 

View solution in original post

12 Replies
alex_colombo
Employee
Employee

Hi @prismacalota, you cannot change reload script with REST API, you have to use Engine API. What is the use case? Why do you need to use REST API and not Engine API (or enigma.js) ?

prismacalota
Partner - Contributor
Partner - Contributor
Author

Hello @alex_colombo ,

Communication with Qlik Cloud takes place directly from Microsoft Business Central (BC) SaaS. A websocket connection cannot be established here. Only direct REST requests via the API with OAuth are possible.

Is there an expansion planned here? Or is there another possibility?

Thank you.

DaveChannon
Employee
Employee

Hi @prismacalota 

To add to Alex's comments, on the product roadmap side, we are currently working on new endpoints for the apps REST API you've linked above, which we are hoping to release early in Q1 2023. 

This will provide you the ability to retrieve the latest load script for an app, and post a new load script back to the app using REST & OAuth.

DaveChannon
Employee
Employee

@prismacalota just a heads up that we today released the full set of endpoints for accessing and updating Qlik Sense app load scripts: https://qlik.dev/apis/rest/apps

DaveChannon_0-1675775441358.png

 

Kilian
Contributor
Contributor

Nice to see that there are now these no endpoints.

It would be nice if we could get an additional paramter in the json request body to specify that the script should be validated before it's saved.

I would expect an 4xx errror response for cases that we are sending an invalid script.

And the response should include the validation erros in a structured form.

 

Currently we were using the enigma.js wrapper for the API that included the methods

setScript then we could call 
checkScriptSyntax and afterwards  doSave .
 
 
DaveChannon
Employee
Employee

Thanks for the feedback @Kilian!

I'll take a note myself, and do please consider opening an ideation topic if you haven't already to allow others to  👍 the suggestion!

jainisha
Partner - Contributor II
Partner - Contributor II

Hi, I want to know do we have same endpoints for Qlik sense APIs??

DaveChannon
Employee
Employee

There is no REST API to do this in Qlik Sense Enterprise Client-managed. If you're using the client managed software you should use the engine APIs to make updates in the app.

marksouzacosta
Partner - Specialist
Partner - Specialist

Hi @jainisha,

Not sure if there is an endpoint for that on Qlik Sense APIs however, if you are a .NET Developer you can make use of the QlikSense.NET SDK. There are lots of methods there to manipulate anything on Qlik Sense Apps. This is the method to set the Load Script: SetScript Method | Qlik Sense for developers Help

Read more at Data Voyagers - datavoyagers.net