Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
IVAN-FELIPE
Employee
Employee

/qrs/extension clarification

Dear colleagues

I want to update a json file dinamically which is inside an extension.

I've seen there is a method to update files in extensions:

https://help.qlik.com/en-US/sense-developer/September2018/Subsystems/RepositoryServiceAPI/Content/Se...

This is the method :

/qrs/extension/{extensionName}/uploadfile?externalpath={externalpath}&overwrite={overwrite}

I can't find any example about how to use it.

I've use other qrs methods successfully but I'm having issues with that. When I send 

qlik.callRepository('/qrs/extensions/lui-example/uploadfile?externalpath=test.txt&overwrite=false').success(function(reply) {...

It always responds 404 (Not found)

So my questions are:

Does this method really overwrite files inside extensions ?

If yes, can you send any valid example, more explicit than the help one?

 

Thanks for your help

1 Reply
ErikWetterberg

Yes, it does. But you need to do a POST, not a get, and provide the file content.