Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

App change using API

I have been running into problems when changing the owner of an app through the QRS API for qlik sense.

From what I can gather online I need to use the URL qrs/Selection/{0}/App/synthetic where {0} is the app ID and send a PUT request.

You pass through a JSON object with the body:

{\"properties\": [{\"name\": \"owner\",\"value\": \"" + id + "\",\"valueIsModified\": true, \"valueIsdifferent\": true}],\"type\": \"App\",\"LatestModifiedDate\": \"" + DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss.fffZ") + "\"}

Where id is the id of the user you want the new owner to be.

I get a response saying this path is not valid, indicating possibly the URL is not valid.

2 Replies
joshuapierlo
Partner - Contributor II
Partner - Contributor II

Hi andrew,

We are running into the same problem at the moment.

Not sure if it helps anything but do you provide your xrfkey after synthetic?

Like : /qrs/selection/APPID/App/synthetic?Xrfkey=123456789

Give me a headsup when you found a solution, currently browsing the api guides....

[Edit]

Oh and when I make a change to the appowner trough QMC the valueIsDifferent is still false... (capital letter D)

sanket8397
Contributor II
Contributor II

Hi Andrew,

1. Selection API endpoint:

 qrs/Selection/{0}/App/synthetic where {0} is the app ID. You need to send post request.

2. Synthetic API End Point:

/qrs/Selection/{1}/App/synthetic where {1} is ID from response from selection query.

You need to send put request.

Body will be :

{
  "properties": [
    {
      "name""owner",
      "value""user ID",
      "valueIsModified"true
    }
  ],
  "type""App",
  "LatestModifiedDate""2021-02-08T03:45:14.159Z"
}
 

 LatestModifiedDate should be current date in above format.

User ID : You can get from QMC (32 characters).

Thank you.

Kind Regards,

Sanket