I have been wrestling with the qrs api for the past few days to create a process for moving apps from one environment to another. Currently my only goal is to download an app & upload it back onto the hub with a different name - I seem to have trouble with the app format as it is not recognized. Any help? Below is my request (excuse the poor text formatting).
var https = require('https'); var fs = require('fs');
//upload app with new name Test. This is where it fails with a 500 error due to invalid format options.headers['Content-Type'] = 'application/vnd.qlik.sense.app'; options.path = '/qrs/app/upload?name=Test&xrfkey=abcdefghijklmnop'; options.method = 'POST';