Skip to content
This repository has been archived by the owner on Sep 27, 2020. It is now read-only.

Latest commit

 

History

History
36 lines (23 loc) · 1.93 KB

dotnetbox.subapis.sharing.sharefolder(string,bool,aclupdatepolicy,sharedlinkpolicy,memberpolicy).rst

File metadata and controls

36 lines (23 loc) · 1.93 KB
orphan

Sharing.ShareFolder Method (string, bool, AclUpdatePolicy, SharedLinkPolicy, MemberPolicy)

Share a folder with collaborators. Most sharing will be completed synchronously.Large folders will be completed asynchronously. To make testing the async case repeatable, set forceAsync. If a AsyncJobId is returned, you'll need to call CheckShareJobStatus until the action completes to get the metadata for the folder. Apps must have full Dropbox access to use this endpoint. Warning: This endpoint is in beta and is subject to minor but possibly backwards-incompatible changes.

Syntax

Sharing.ShareFolder(string path, bool forceAsync, AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLinkPolicy, MemberPolicy memberPolicy)

Parameters

path

System.String The path to the folder to share. If it does not exist, then a new one is created.

forceAsync

System.Boolean Whether to force the share to happen asynchronously. The default for this field is False.

aclUpdatePolicy

DotNetBox.AclUpdatePolicy </classes/dotnetbox.aclupdatepolicy> Who can add and remove members of this shared folder.

sharedLinkPolicy

DotNetBox.SharedLinkPolicy </classes/dotnetbox.sharedlinkpolicy> The policy to apply to shared links created for content inside this shared folder.

memberPolicy

DotNetBox.MemberPolicy </classes/dotnetbox.memberpolicy> Who can be a member of this shared folder.

Returns

DotNetBox.ShareFolderLaunch </classes/dotnetbox.sharefolderlaunch> If asynchronous, returns async job ID under DotNetBox.ShareFolderLaunch.AsyncJobId </classes/dotnetbox.sharefolderlaunch> . If not, returns DotNetBox.SharedFolderMetadata </classes/dotnetbox.sharedfoldermetadata> under DotNetBox.ShareFolderLaunch.FolderMetadata </classes/dotnetbox.sharefolderlaunch> .