I'm trying to get rclone to work with dropbox business accounts.
I read in the documentation that I should be able to use a `ns:1234` prefix on paths to view listings.
Here is a curl example I constructed following the documentation which doesn't seem to work:
$ curl -X POST -H 'Content-Type: application/json' \
--header 'Authorization: Bearer XXXX' \
--data '{"path":"ns:12345"}' \
https://api.dropboxapi.com/2/files/list_folder
{"error_summary": "path/not_found/...", "error": {".tag": "path", "path": {".tag": "not_found"}}}
However if I use the alternate form with the `Dropbox-API-Path-Root` header it seems to work.
$ curl -X POST -H 'Content-Type: application/json' \
--header 'Authorization: Bearer XXXX' \
--header 'Dropbox-API-Path-Root: {".tag": "namespace_id", "namespace_id": "12345"}' \
--data '{"path":""}' \
https://api.dropboxapi.com/2/files/list_folder
{"entries": [{".tag": "folder", "name": "test-folder", "path_lower": "/test-folder", "path_display": "/test-folder", "parent_shared_folder_id":....[snip successful listing]}
I'm trying to use putting the namespace in the path as the go SDK doesn't seem to support the Dropbox-API-Path-Root` header.
Any help much appreciated!
Thanks