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: 
LF_PECO
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
LF_PECO
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
LF_PECO
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