How to get id, if i know the path, using rest api?

New post

Comments

1 comment

  • jcleblanc

    Hi ,

     

    Just so that I understand, you have a file name within a partner folder and you'd like to obtain the ID for that file?

     

    If that's the case, the search endpoint should provide you with what you need. Here's a guide on how it's used with the different SDKs. 

     

    Within the search endpoint you'll be able to set a parameter for ancestor_folder_ids. This is a folder ID or a set of comma-delimited folder IDs in which you would like to search for content. If you set that value to the folder ID, and the search query to the file name that you're looking for, that should give you the results you need.

     

    Thanks,

    Jon

    0
    Comment actions Permalink

Please sign in to leave a comment.