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.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to enable/disable comments while sharing folders in c# using API

How to enable/disable comments while sharing folders in c# using API

parimisatya
Explorer | Level 3

How to enable and disable comments while sharing folders in c# using API

 

var members = new[] {
new AddMember(new MemberSelector.Email("xxx.xxx@xxx.com"), AccessLevel.Editor.Instance.AsViewer) 
};

//var add_message_as_comment = false;
await dbx.Sharing.AddFolderMemberAsync(sharedFolderId, members);

1 Reply 1

Greg-DB
Dropbox Staff

Dropbox does not currently offer an API for managing comments. When adding a member to a folder, you can only set their access level to either AccessLevel.Editor.Instance or AccessLevel.Viewer.Instance. AccessLevel.ViewerNoComment.Instance is not currently supported for that. 

Need more support?
Who's talking

Top contributors to this post

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