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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Tenuki
Contributor III
Contributor III

Data Files Access

Hello, 

I have create API key and manage to try some curl command with success. 

Though, when I try https://mytenant.myregion.qlikcloud.com/api/v1/data-files it gives me only data files on my personal space.

I would like to know what parameter I should add to access to all files stored on a specific space, in a specific folder.

my code :

api_key_file = 'api_key_qlick.txt'
api_key = read_api_key(api_key_file)
url = "https://mytenant.myregion.qlikcloud.com/api/v1/data-files"
 
headers = { 
    "Content-type":"application/json",
    "Authorization":f"Bearer {api_key}"
}
response = requests.get(url, headers=headers)
data = response.json()
request is the library for curl command in Python
 
Thanks for your help
Labels (2)
1 Solution

Accepted Solutions
Tenuki
Contributor III
Contributor III
Author

I found the parameter thanks to Postman App.

I should have update the parameter "includeAllSpaces" =True

{{baseUrl}}/api/v1/data-files?includeAllSpaces=True

 

View solution in original post

1 Reply
Tenuki
Contributor III
Contributor III
Author

I found the parameter thanks to Postman App.

I should have update the parameter "includeAllSpaces" =True

{{baseUrl}}/api/v1/data-files?includeAllSpaces=True