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: 

Unable to search file in Dropbox for business' account using Dropbox Api

Unable to search file in Dropbox for business' account using Dropbox Api

Shiza
Explorer | Level 3

Hi, I'm trying to search a file in a dropbox buisness account. I am able to use the search api for an individual dropbox but i want to be able to acheive the same thing for a buisness account aswell. I can list the folders using the api aswell and create a folder in dropbox buisness account but not search.

I used this to make the api call --> https://api.dropboxapi.com/2/files/search_v2

in the header i passed these four parameters

* Authorization: Bearer sl.........
* Content-Type: application/json
* Dropbox-API-path_Root: {".tag": "root", "root": "name-space-id"}
* Dropbox-API-Select-User: dbmid:.....

In body I'm passing 

{

    "query""23-017) 12 Greenwich Road SE7.lnk"
}

Its gives a response of 200 on postman but it should have returned the path and details of that file.

its gives this response

{
    "has_more"false,
    "matches": []
}
I dont know what I'm doing wrong
1 Reply 1

Greg-DB
Dropbox Staff

This response indicates that nothing was found for that particular query for the specified member under the specified namespace. Please check that your query, member ID, and namespace ID are correct. If your values are correct but you are missing search results, feel free to open an API ticket here and we'll look into it. Please include the query, member ID, and namespace ID, but continue to redact the access token.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?