Start 2025 on time and up to date. Seamlessly integrate your calendars into Dropbox with these simple steps.

Forum Discussion

l1un's avatar
l1un
New member | Level 2
3 years ago

absolute or relative path parameter

Hi! We're using the Dropbox-API-Arg request header, I would like to confirm if the sample path below is relative?

\"path": "/sample_folder/sample_folder1/sample_file.csv"\

  • That path would be considered "absolute", in that it's not relative to anything except the root itself.

     

    On the Dropbox API, there are multiple ways to reference items in a Dropbox account. Exactly how you do so is up to you, and will depend on how you want your application to work. You can find more information in the File Access Guide.

     

    For example, you may specify a path to a file by giving the full absolute path, including the names of any parent folders, such as "/folder_name/file_name.ext". You could instead specify that relative to a folder by id though, like "id:abc123xyz/file_name.ext" (where "id:abc123xyz" is the id of the folder). Check out the documentation linked above for more information.

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

    That path would be considered "absolute", in that it's not relative to anything except the root itself.

     

    On the Dropbox API, there are multiple ways to reference items in a Dropbox account. Exactly how you do so is up to you, and will depend on how you want your application to work. You can find more information in the File Access Guide.

     

    For example, you may specify a path to a file by giving the full absolute path, including the names of any parent folders, such as "/folder_name/file_name.ext". You could instead specify that relative to a folder by id though, like "id:abc123xyz/file_name.ext" (where "id:abc123xyz" is the id of the folder). Check out the documentation linked above for more information.