Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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
Master
Master

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