Available on crate features
async_routes
and dbx_sharing
only.Structs§
- AddFile
Member Args - Arguments for
add_file_member()
. - AddFolder
Member Arg - AddMember
- The member and type of access the member should have when added to a shared folder.
- Audience
Exception Content Info - Information about the content that has a link audience different than that of this folder.
- Audience
Exceptions - The total count and truncated list of information of content inside this folder that has a different audience than the link on this folder. This is only returned for folders.
- Audience
Restricting Shared Folder - Information about the shared folder that prevents the link audience for this link from being more restrictive.
- Collection
Link Metadata - Metadata for a collection-based shared link.
- Create
Shared Link Arg - Create
Shared Link With Settings Arg - Expected
Shared Content Link Metadata - The expected metadata of a shared link for a file or folder when a link is first created for the content. Absent if the link already exists.
- File
Link Metadata - The metadata of a file shared link.
- File
Member Action Result - Per-member result for
add_file_member()
. - File
Permission - Whether the user is allowed to take the sharing action on the file.
- Folder
Link Metadata - The metadata of a folder shared link.
- Folder
Permission - Whether the user is allowed to take the action on the shared folder.
- Folder
Policy - A set of policies governing membership and privileges for a shared folder.
- GetFile
Metadata Arg - Arguments of
get_file_metadata()
. - GetFile
Metadata Batch Arg - Arguments of
get_file_metadata_batch()
. - GetFile
Metadata Batch Result - Per file results of
get_file_metadata_batch()
. - GetMetadata
Args - GetShared
Link Metadata Arg - GetShared
Links Arg - GetShared
Links Result - Group
Info - The information about a group. Groups is a way to manage a list of users who need same access permission to the shared folder.
- Group
Membership Info - The information about a group member of the shared content.
- Insufficient
Plan - Insufficient
Quota Amounts - Invitee
Membership Info - Information about an invited member of a shared content.
- Link
Audience Option - Link
Permission - Permissions for actions that can be performed on a link.
- Link
Permissions - Link
Settings - Settings that apply to a link.
- List
File Members Arg - Arguments for
list_file_members()
. - List
File Members Batch Arg - Arguments for
list_file_members_batch()
. - List
File Members Batch Result - Per-file result for
list_file_members_batch()
. - List
File Members Continue Arg - Arguments for
list_file_members_continue()
. - List
File Members Count Result - List
Files Arg - Arguments for
list_received_files()
. - List
Files Continue Arg - Arguments for
list_received_files_continue()
. - List
Files Result - Success results for
list_received_files()
. - List
Folder Members Args - List
Folder Members Continue Arg - List
Folder Members Cursor Arg - List
Folders Args - List
Folders Continue Arg - List
Folders Result - Result for
list_folders()
orlist_mountable_folders()
, depending on which endpoint was requested. Unmounted shared folders can be identified by the absence ofSharedFolderMetadata::path_lower
. - List
Shared Links Arg - List
Shared Links Result - Member
Access Level Result - Contains information about a member’s access level to content after an operation.
- Member
Permission - Whether the user is allowed to take the action on the associated member.
- Membership
Info - The information about a member of the shared content.
- Modify
Shared Link Settings Args - Mount
Folder Arg - Parent
Folder Access Info - Contains information about a parent folder that a member has access to.
- Path
Link Metadata - Metadata for a path-based shared link.
- Relinquish
File Membership Arg - Relinquish
Folder Membership Arg - Remove
File Member Arg - Arguments for
remove_file_member_2()
. - Remove
Folder Member Arg - Revoke
Shared Link Arg - SetAccess
Inheritance Arg - Share
Folder Arg - Share
Folder ArgBase - Shared
Content Link Metadata - Metadata of a shared link for a file or folder.
- Shared
Content Link Metadata Base - Shared
File Members - Shared file user, group, and invitee membership. Used for the results of
list_file_members()
andlist_file_members_continue()
, and used as part of the results forlist_file_members_batch()
. - Shared
File Metadata - Properties of the shared file.
- Shared
Folder Members - Shared folder user and group membership.
- Shared
Folder Metadata - The metadata which includes basic information about the shared folder.
- Shared
Folder Metadata Base - Properties of the shared folder.
- Shared
Link Settings - Team
Member Info - Information about a team member.
- Transfer
Folder Arg - Unmount
Folder Arg - Unshare
File Arg - Arguments for
unshare_file()
. - Unshare
Folder Arg - Update
File Member Args - Arguments for
update_file_member()
. - Update
Folder Member Arg - Update
Folder Policy Arg - If any of the policies are unset, then they retain their current setting.
- User
File Membership Info - The information about a user member of the shared content with an appended last seen timestamp.
- User
Info - Basic information about a user. Use
users::get_account()
andusers::get_account_batch()
to obtain more detailed information. - User
Membership Info - The information about a user member of the shared content.
- Visibility
Policy
Enums§
- Access
Inheritance - Information about the inheritance policy of a shared folder.
- Access
Level - Defines the access levels for collaborators.
- AclUpdate
Policy - Who can change a shared folder’s access control list (ACL). In other words, who can add, remove, or change the privileges of members.
- AddFile
Member Error - Errors for
add_file_member()
. - AddFolder
Member Error - AddMember
Selector Error - Alpha
Resolved Visibility - check documentation for ResolvedVisibility.
- Create
Shared Link Error - Create
Shared Link With Settings Error - File
Action - Sharing actions that may be taken on files.
- File
Error Result - File
Member Action Error - File
Member Action Individual Result - File
Member Remove Action Result - Folder
Action - Actions that may be taken on shared folders.
- GetFile
Metadata Error - Error result for
get_file_metadata()
. - GetFile
Metadata Individual Result - GetShared
Link File Error - GetShared
Links Error - Invitee
Info - Information about the recipient of a shared content invitation.
- JobError
- Error occurred while performing an asynchronous job from
unshare_folder()
orremove_folder_member()
. - JobStatus
- Link
Access Level - Link
Action - Actions that can be performed on a link.
- Link
Audience - Link
Audience Disallowed Reason - check documentation for VisibilityPolicyDisallowedReason.
- Link
Expiry - Link
Metadata - Metadata for a shared link. This can be either a
PathLinkMetadata
orCollectionLinkMetadata
. - Link
Password - List
File Members Continue Error - Error for
list_file_members_continue()
. - List
File Members Error - Error for
list_file_members()
. - List
File Members Individual Result - List
Files Continue Error - Error results for
list_received_files_continue()
. - List
Folder Members Continue Error - List
Folders Continue Error - List
Shared Links Error - Member
Action - Actions that may be taken on members of a shared folder.
- Member
Policy - Policy governing who can be a member of a shared folder. Only applicable to folders owned by a user on a team.
- Member
Selector - Includes different ways to identify a member of a shared folder.
- Modify
Shared Link Settings Error - Mount
Folder Error - Pending
Upload Mode - Flag to indicate pending upload default (for linking to not-yet-existing paths).
- Permission
Denied Reason - Possible reasons the user is denied a permission.
- Relinquish
File Membership Error - Relinquish
Folder Membership Error - Remove
File Member Error - Errors for
remove_file_member_2()
. - Remove
Folder Member Error - Remove
Member JobStatus - Requested
Link Access Level - Requested
Visibility - The access permission that can be requested by the caller for the shared link. Note that the
final resolved visibility of the shared link takes into account other aspects, such as team and
shared folder settings. Check the
ResolvedVisibility
for more info on the possible resolved visibility values of shared links. - Resolved
Visibility - The actual access permissions values of shared links after taking into account user preferences
and the team and shared folder settings. Check the
RequestedVisibility
for more info on the possible visibility values that can be set by the shared link’s owner. - Revoke
Shared Link Error - SetAccess
Inheritance Error - Share
Folder Error - Share
Folder Error Base - Share
Folder JobStatus - Share
Folder Launch - Share
Path Error - Shared
Folder Access Error - There is an error accessing the shared folder.
- Shared
Folder Member Error - Shared
Link Access Failure Reason - Shared
Link Already Exists Metadata - Shared
Link Error - Shared
Link Metadata - The metadata of a shared link.
- Shared
Link Policy - Who can view shared links in this folder.
- Shared
Link Settings Error - Sharing
File Access Error - User could not access this file.
- Sharing
User Error - User account had a problem preventing this action.
- Transfer
Folder Error - Unmount
Folder Error - Unshare
File Error - Error result for
unshare_file()
. - Unshare
Folder Error - Update
Folder Member Error - Update
Folder Policy Error - Viewer
Info Policy - Visibility
- Who can access a shared link. The most open visibility is
Public
. The default depends on many aspects, such as team and user preferences and shared folder settings. - Visibility
Policy Disallowed Reason
Functions§
- add_
file_ member - Adds specified members to a file.
- add_
folder_ member - Allows an owner or editor (if the ACL update policy allows) of a shared folder to add another
member. For the new member to get access to all the functionality for this folder, you will need
to call
mount_folder()
on their behalf. - check_
job_ status - Returns the status of an asynchronous job.
- check_
remove_ member_ job_ status - Returns the status of an asynchronous job for sharing a folder.
- check_
share_ job_ status - Returns the status of an asynchronous job for sharing a folder.
- create_
shared_ link Deprecated - Create a shared link. If a shared link already exists for the given path, that link is returned.
Previously, it was technically possible to break a shared link by moving or renaming the
corresponding file or folder. In the future, this will no longer be the case, so your app
shouldn’t rely on this behavior. Instead, if your app needs to revoke a shared link, use
revoke_shared_link()
. - create_
shared_ link_ with_ settings - Create a shared link with custom settings. If no settings are given then the default visibility
is
RequestedVisibility::Public
(The resolved visibility, though, may depend on other aspects such as team and shared folder settings). - get_
file_ metadata - Returns shared file metadata.
- get_
file_ metadata_ batch - Returns shared file metadata.
- get_
folder_ metadata - Returns shared folder metadata by its folder ID.
- get_
shared_ link_ file - Download the shared link’s file from a user’s Dropbox.
- get_
shared_ link_ metadata - Get the shared link’s metadata.
- get_
shared_ link_ metadata_ app_ auth - Get the shared link’s metadata.
- get_
shared_ links Deprecated - Returns a list of
LinkMetadata
objects for this user, including collection links. If no path is given, returns a list of all shared links for the current user, including collection links, up to a maximum of 1000 links. If a non-empty path is given, returns a list of all shared links that allow access to the given path. Collection links are never returned in this case. - list_
file_ members - Use to obtain the members who have been invited to a file, both inherited and uninherited members.
- list_
file_ members_ batch - Get members of multiple files at once. The arguments to this route are more limited, and the limit on query result size per file is more strict. To customize the results more, use the individual file endpoint. Inherited users and groups are not included in the result, and permissions are not returned for this endpoint.
- list_
file_ members_ continue - Once a cursor has been retrieved from
list_file_members()
orlist_file_members_batch()
, use this to paginate through all shared file members. - list_
folder_ members - Returns shared folder membership by its folder ID.
- list_
folder_ members_ continue - Once a cursor has been retrieved from
list_folder_members()
, use this to paginate through all shared folder members. - list_
folders - Return the list of all shared folders the current user has access to.
- list_
folders_ continue - Once a cursor has been retrieved from
list_folders()
, use this to paginate through all shared folders. The cursor must come from a previous call tolist_folders()
orlist_folders_continue()
. - list_
mountable_ folders - Return the list of all shared folders the current user can mount or unmount.
- list_
mountable_ folders_ continue - Once a cursor has been retrieved from
list_mountable_folders()
, use this to paginate through all mountable shared folders. The cursor must come from a previous call tolist_mountable_folders()
orlist_mountable_folders_continue()
. - list_
received_ files - Returns a list of all files shared with current user. Does not include files the user has received via shared folders, and does not include unclaimed invitations.
- list_
received_ files_ continue - Get more results with a cursor from
list_received_files()
. - list_
shared_ links - List shared links of this user. If no path is given, returns a list of all shared links for the current user. For members of business teams using team space and member folders, returns all shared links in the team member’s home folder unless the team space ID is specified in the request header. For more information, refer to the Namespace Guide. If a non-empty path is given, returns a list of all shared links that allow access to the given path - direct links to the given path and links to parent folders of the given path. Links to parent folders can be suppressed by setting direct_only to true.
- modify_
shared_ link_ settings - Modify the shared link’s settings. If the requested visibility conflict with the shared links
policy of the team or the shared folder (in case the linked file is part of a shared folder)
then the
LinkPermissions::resolved_visibility
of the returnedSharedLinkMetadata
will reflect the actual visibility of the shared link and theLinkPermissions::requested_visibility
will reflect the requested visibility. - mount_
folder - The current user mounts the designated folder. Mount a shared folder for a user after they have been added as a member. Once mounted, the shared folder will appear in their Dropbox.
- relinquish_
file_ membership - The current user relinquishes their membership in the designated file. Note that the current user may still have inherited access to this file through the parent folder.
- relinquish_
folder_ membership - The current user relinquishes their membership in the designated shared folder and will no longer have access to the folder. A folder owner cannot relinquish membership in their own folder. This will run synchronously if leave_a_copy is false, and asynchronously if leave_a_copy is true.
- remove_
file_ member Deprecated - Identical to remove_file_member_2 but with less information returned.
- remove_
file_ member_ 2 - Removes a specified member from the file.
- remove_
folder_ member - Allows an owner or editor (if the ACL update policy allows) of a shared folder to remove another member.
- revoke_
shared_ link - Revoke a shared link. Note that even after revoking a shared link to a file, the file may be
accessible if there are shared links leading to any of the file parent folders. To list all
shared links that enable access to a specific file, you can use the
list_shared_links()
with the file as theListSharedLinksArg::path
argument. - set_
access_ inheritance - Change the inheritance policy of an existing Shared Folder. Only permitted for shared folders in
a shared team root. If a
ShareFolderLaunch::AsyncJobId
is returned, you’ll need to callcheck_share_job_status()
until the action completes to get the metadata for the folder. - share_
folder - 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
ShareFolderArg.force_async
. If aShareFolderLaunch::AsyncJobId
is returned, you’ll need to callcheck_share_job_status()
until the action completes to get the metadata for the folder. - transfer_
folder - Transfer ownership of a shared folder to a member of the shared folder. User must have
AccessLevel::Owner
access to the shared folder to perform a transfer. - unmount_
folder - The current user unmounts the designated folder. They can re-mount the folder at a later time
using
mount_folder()
. - unshare_
file - Remove all members from this file. Does not remove inherited members.
- unshare_
folder - Allows a shared folder owner to unshare the folder. You’ll need to call
check_job_status()
to determine if the action has completed successfully. - update_
file_ member - Changes a member’s access on a shared file.
- update_
folder_ member - Allows an owner or editor of a shared folder to update another member’s permissions.
- update_
folder_ policy - Update the sharing policies for a shared folder. User must have
AccessLevel::Owner
access to the shared folder to update its policies.