Post

2 followers Follow
0
Avatar

Why is it possible to download all files in a workspace but not in a specific app?

I can use https://developers.podio.com/doc/files/get-files-on-space-22471 to get all files from a workspace. But trying to use https://developers.podio.com/doc/files/get-files-on-app-22472 results in:

API-Sandbox:

Request: /file/app/234567/?limit=20&offset=0&sort_by=name&sort_desc=true
Response: null

Which looks not very helpful. But using a real request results in:

{u'error': u'forbidden',
u'error_description': u'The user with id 123456 does not have the right view on app with id 234567',
u'error_detail': None,
u'error_parameters': {},
u'error_propagate': False,
u'request': {u'method': u'GET',
u'query_string': u'',
u'url': u'http://api.podio.com/file/app/234567/'}}

Do I really need to define a view on an app to get all files from an app in a workspace I'm Admin for? I could load all files in the workspace and filter them by app. But that doesn't seem very efficient if there's a function for that.

Johan Hülsen

Please sign in to leave a comment.

2 comments

0
Avatar

Hi Johan,

Please ensure the the user actually has access to the app in question. It works for me when I use an app id I have access to.

Best,
Andreas

Andreas Garnæs 0 votes
0
Avatar

Hi Andreas,

thanks for pointing me in the right direction. There was problem in my method fetching the app_id. Using the correct app_id helped.

Thanks

Johan Hülsen 0 votes