cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more 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: 

Re: Unable to use the add_file_member API (HTTP) with C#

Unable to use the add_file_member API (HTTP) with C#

demo22
Explorer | Level 3

 I am trying to use this API but when inputting the parameters by creating anonymous properties, thanks to the "dot" in the ".tag" in "members", I cannot create that property as it will ask for an identifier in C#. Hence I am not able to create the request successfully. Please suggest an example for making an HTTP request on this API in C#. Thank you.

11 Replies 11

demo22
Explorer | Level 3

Thanks for the reply. As I read the document, I know that using this API "https://api.dropboxapi.com/2/files/list_folder" can get the "parent_shared_folder_id" inside the "sharing_info". Problem is, if the folder has not been shared before, the "parent_shared_folder_id" would not possibly appear in the result. The only way it would appear is after the folder has been shared once.

That makes the situation becomes very odd becasue in order to share a folder you need a so-called  "parent_shared_folder_id". But the only way to get the  "parent_shared_folder_id" you have to share the folder first. This is really confusing...

So how about you tell me the correct procedures in order to share a folder correctly using the APIs with reachable parameters? Thank you.

Greg-DB
Dropbox Staff

You do not need a 'parent_shared_folder_id' in order to share a folder. You can share a non-shared folder using /2/sharing/share_folder by specifying the 'path' of the folder you want to share:

https://www.dropbox.com/developers/documentation/http/documentation#sharing-share_folder

When you get the successful result from /2/sharing/check_share_job_status, it will contain the new shared folder ID:

https://www.dropbox.com/developers/documentation/http/documentation#sharing-check_share_job_status

Need more support?