Hi Dropbox Team.
I try to get the content of my Team's root folder.
Here is my call:
curl --location --request POST 'https://api.dropboxapi.com/2/files/list_folder' \
--header 'Dropbox-API-Path-Root: {".tag": "home"}' \
--header 'Dropbox-API-Select-Admin: {"member_id": "dbmidXXXXX"}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer sl.XXXXXXXXXXX' \
--data-raw '{
"path": ""
}'
And here is the answer:
Error in call to API function "files/list_folder": Unexpected select user header. Your app does not have permission to use this feature
What am i doing wrong ?
I tried to follow many other questions about it, but didn't found a great documentation to set Header Dropbox-API-Path-Root and Dropbox-API-Select-Admin, like this link: https://www.dropbox.com/developers/documentation/http/teams#access-types and this post https://www.dropboxforum.com/t5/API-Support-Feedback/How-to-list-the-contents-of-a-team-folder/td-p/...
Could you put more examples in your documentation of the content expected in these headers ? Dropbox-API-Select-User and Dropbox-API-Select-Admin .
Thanks a lot !