You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

qwc's avatar
qwc
Explorer | Level 4
5 years ago

409 error with list_shared_links and business account

Hi - We are getting the following error:

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

When calling the:

https://api.dropboxapi.com/2/sharing/list_shared_links

Endpoint from a business account. It's not erroring with a normal/free user.

Is there something I am missing here? What would the set of API calls be to get the list of shared links for a user to cover all user types?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    The /2/sharing/list_shared_links endpoint is the right API endpoint for listing the shared links owned by a user, regardless of account type. 

     

    The 'path/not_found' error indicates that there was nothing found at the path specified in the API call via the "path" parameter though. Double check that you're supplying a correct path value for that account. 

     

    Note that if you're trying to access the contents of a "team space" though, you will need to configure the API call accordingly. Please refer to the Namespace Guide for information on doing so.

    • qwc's avatar
      qwc
      Explorer | Level 4

      Hi - I am not specifying a path parameter, so as per the docs:

      If no path is given, returns a list of all shared links for the current user.

      Shouldn't this return everything for that current user?

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        Thanks for the information! Yes, if you're not supplying the path parameter at all, it should list all of the shared links for that account. Getting a 'path/not_found' in that case is unexpected, so we'll look into it.