Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

jlibe's avatar
jlibe
Explorer | Level 3
7 years ago

Calling ListFolder with id

Hi Team,

 

I try to list folder with the following path format : 

id:XXXXXXXXXX

 

It returns the following unless the folder does exist (I get the id from a previous list folder call, witch gives me subfolder list)...

 

Call details :

curl -X POST https://api.dropboxapi.com/2/files/list_folder \
  --header 'Authorization: Bearer xxxxxxxxxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data '{"path":"id:xxxxxxxxx"}'

 

Reponse :

{ "error_summary": "path/not_found/...", "error": { ".tag": "path", "path": { ".tag": "not_found" } } }

Can you help me on this issue please ?

 

Joris

3 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 years ago
    I'm not sure I understand your question. What behavior do you want in this case? Do you want to be able to list the (deleted) contents of the deleted folder?

    If the folder does not exist (e.g., it was deleted), attempting to access it is supposed to fail with a 'path/not_found' indicating that it doesn't exist.
  • jlibe's avatar
    jlibe
    Explorer | Level 3
    7 years ago

    Hi Greg,

     

    Thanks for your answer.

    Actually the folder DOES exist. It is not deleted or else...

    I just want to list its content with "id method", but it doesn't work for me.

     

    Anyone can help me ?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 years ago
    Can you let me know how you're checking that the folder for this ID is not deleted?

    If you supply the ID itself, that may be helpful. You can open an API ticket if you'd prefer to share the details privately:

    https://www.dropbox.com/developers/contact

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!