cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Calling ListFolder with id

Calling ListFolder with id

jlibe
Explorer | Level 3

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 3

Greg-DB
Dropbox Staff
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
Explorer | Level 3

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
Dropbox Staff
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
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    jlibe Explorer | Level 3
What do Dropbox user levels mean?