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: 
jsteenkamp
Contributor II
Contributor II

export an App using the repository API export endpoint results in 503 forbidden error

version: Qlik Sense May 2022 Patch 1

I am trying to export an App in Powershell using the repository API export endpoint.

I am using a certificate to connect (sa_api user?) and can successfully call any API endpoint, except this export.

 

certificate: 
- [Subject] CN=QlikClient
- [Issuer] CN=[hostname]-CA

method: POST
headers: {X-Qlik-User, x-Qlik-Xrfkey}
uri: https://[hostname]:4242/qrs/app/xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx/export/xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx?skipData=True?xrfkey=xxxxxxxxxxx
Invoke-RestMethod : The remote server returned an error: (403) Forbidden.

 

https://help.qlik.com/en-US/sense-developer/May2022/Subsystems/RepositoryServiceAPI/Content/Sense_Re... 

Labels (1)
  • API

2 Replies
alex_colombo
Employee
Employee

Hi @jsteenkamp , can you please share the complete headers where I can see which user are you using?

Have you try, with the same user, to perform an export from QMC?

jsteenkamp
Contributor II
Contributor II
Author

Hi @alex_colombo,

Thank you for reaching out.

User sa_api cannot export apps from QMC either. Looks like this system user need the additional admin role ContentAdmin to be able to export an app.