Class DbxTeamTeamRequests
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondevicesListMemberDevices(String teamMemberId) List all device sessions of a team's member.devicesListMemberDevicesBuilder(String teamMemberId) List all device sessions of a team's member.List all device sessions of a team.List all device sessions of a team.Deprecated.Deprecated.voidRevoke a device session of a team's member.devicesRevokeDeviceSessionBatch(List<RevokeDeviceSessionArg> revokeDevices) Revoke a list of device sessions of team members.featuresGetValues(List<Feature> features) Get the values for one or more features.getInfo()Retrieves information about a team.groupsCreate(String groupName) Creates a new, empty group, with a requested name.groupsCreateBuilder(String groupName) Creates a new, empty group, with a requested name.Deletes a group.Retrieves information about one or more groups.groupsJobStatusGet(String asyncJobId) Once an async_job_id is returned fromgroupsDelete(com.dropbox.core.v2.team.GroupSelector),groupsMembersAdd(GroupSelector,List,boolean), orgroupsMembersRemove(GroupSelector,List,boolean)use this method to poll the status of granting/revoking group members' access to group-owned resources.Lists groups on a team.groupsList(long limit) Lists groups on a team.groupsListContinue(String cursor) Once a cursor has been retrieved fromgroupsList(long), use this to paginate through all groups.groupsMembersAdd(GroupSelector group, List<MemberAccess> members) Adds members to a group.groupsMembersAdd(GroupSelector group, List<MemberAccess> members, boolean returnMembers) Adds members to a group.groupsMembersList(GroupSelector group) Lists members of a group.groupsMembersList(GroupSelector group, long limit) Lists members of a group.groupsMembersListContinue(String cursor) Once a cursor has been retrieved fromgroupsMembersList(GroupSelector,long), use this to paginate through all members of the group.groupsMembersRemove(GroupSelector group, List<UserSelectorArg> users) Removes members from a group.groupsMembersRemove(GroupSelector group, List<UserSelectorArg> users, boolean returnMembers) Removes members from a group.groupsMembersSetAccessType(GroupSelector group, UserSelectorArg user, GroupAccessType accessType) Sets a member's access type in a group.groupsMembersSetAccessType(GroupSelector group, UserSelectorArg user, GroupAccessType accessType, boolean returnMembers) Sets a member's access type in a group.groupsUpdate(GroupSelector group) Updates a group's name and/or external ID.groupsUpdateBuilder(GroupSelector group) Updates a group's name and/or external ID.legalHoldsCreatePolicy(String name, List<String> members) Creates new legal hold policy.legalHoldsCreatePolicyBuilder(String name, List<String> members) Creates new legal hold policy.Gets a legal hold by Id.List the file metadata that's under the hold.Continue listing the file metadata that's under the hold.legalHoldsListHeldRevisionsContinue(String id, String cursor) Continue listing the file metadata that's under the hold.Lists legal holds on a team.legalHoldsListPolicies(boolean includeReleased) Lists legal holds on a team.voidReleases a legal hold by Id.Updates a legal hold.Updates a legal hold.linkedAppsListMemberLinkedApps(String teamMemberId) List all linked applications of the team member.List all applications linked to the team members' accounts.List all applications linked to the team members' accounts.Deprecated.linkedAppsListTeamLinkedApps(String cursor) Deprecated.voidlinkedAppsRevokeLinkedApp(String appId, String teamMemberId) Revoke a linked application of the team member.voidlinkedAppsRevokeLinkedApp(String appId, String teamMemberId, boolean keepAppFolder) Revoke a linked application of the team member.linkedAppsRevokeLinkedAppBatch(List<RevokeLinkedApiAppArg> revokeLinkedApp) Revoke a list of linked applications of the team members.membersAdd(List<MemberAddArg> newMembers) Adds members to a team.membersAdd(List<MemberAddArg> newMembers, boolean forceAsync) Adds members to a team.membersAddJobStatusGet(String asyncJobId) Once an async_job_id is returned frommembersAdd(List,boolean), use this to poll the status of the asynchronous request.membersAddJobStatusGetV2(String asyncJobId) Once an async_job_id is returned frommembersAddV2(List,boolean), use this to poll the status of the asynchronous request.membersAddV2(List<MemberAddV2Arg> newMembers) Adds members to a team.membersAddV2(List<MemberAddV2Arg> newMembers, boolean forceAsync) Adds members to a team.voidPermanently delete the files of a user who has been removed from the team.Deletes a team member's profile photo.Deletes a team member's profile photo.Get available TeamMemberRoles for the connected team.membersGetInfo(List<UserSelectorArg> members) Returns information about multiple team members.membersGetInfoV2(List<UserSelectorArg> members) Returns information about multiple team members.Lists members of a team.Lists members of a team.membersListContinue(String cursor) Once a cursor has been retrieved frommembersList(com.dropbox.core.v2.team.MembersListArg), use this to paginate through all team members.membersListContinueV2(String cursor) Once a cursor has been retrieved frommembersListV2(com.dropbox.core.v2.team.MembersListArg), use this to paginate through all team members.Lists members of a team.Lists members of a team.membersMoveFormerMemberFiles(UserSelectorArg user, UserSelectorArg transferDestId, UserSelectorArg transferAdminId) Moves removed member's files to a different member.membersMoveFormerMemberFilesJobStatusCheck(String asyncJobId) Once an async_job_id is returned frommembersMoveFormerMemberFiles(UserSelectorArg,UserSelectorArg,UserSelectorArg), use this to poll the status of the asynchronous request.Add users to member space limits excluded users list.Add users to member space limits excluded users list.List member space limits excluded users.memberSpaceLimitsExcludedUsersList(long limit) List member space limits excluded users.Continue listing member space limits excluded users.Remove users from member space limits excluded users list.Remove users from member space limits excluded users list.Get users custom quota.Remove users custom quota.memberSpaceLimitsSetCustomQuota(List<UserCustomQuotaArg> usersAndQuotas) Set users custom quota.voidRecover a deleted member.membersRemove(UserSelectorArg user) Removes a member from a team.Removes a member from a team.membersRemoveJobStatusGet(String asyncJobId) Once an async_job_id is returned frommembersRemove(UserSelectorArg), use this to poll the status of the asynchronous request.membersSecondaryEmailsAdd(List<UserSecondaryEmailsArg> newSecondaryEmails) Add secondary emails to users.membersSecondaryEmailsDelete(List<UserSecondaryEmailsArg> emailsToDelete) Delete secondary emails from users Permission : Team member management.membersSecondaryEmailsResendVerificationEmails(List<UserSecondaryEmailsArg> emailsToResend) Resend secondary email verification emails.voidSends welcome email to pending team member.membersSetAdminPermissions(UserSelectorArg user, AdminTier newRole) Updates a team member's permissions.Updates a team member's permissions.membersSetAdminPermissionsV2(UserSelectorArg user, List<String> newRoles) Updates a team member's permissions.Updates a team member's profile.Updates a team member's profile.membersSetProfilePhoto(UserSelectorArg user, PhotoSourceArg photo) Updates a team member's profile photo.membersSetProfilePhotoV2(UserSelectorArg user, PhotoSourceArg photo) Updates a team member's profile photo.Updates a team member's profile.Updates a team member's profile.voidSuspend a member from a team.voidmembersSuspend(UserSelectorArg user, boolean wipeData) Suspend a member from a team.voidUnsuspend a member from a team.Returns a list of all team-accessible namespaces.namespacesList(long limit) Returns a list of all team-accessible namespaces.namespacesListContinue(String cursor) Once a cursor has been retrieved fromnamespacesList(long), use this to paginate through all team-accessible namespaces.propertiesTemplateAdd(String name, String description, List<PropertyFieldTemplate> fields) Deprecated.propertiesTemplateGet(String templateId) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Endpoint adds Approve List entries.Endpoint adds Approve List entries.Lists Approve List entries for given team, from newest to oldest, returning up to `limit` entries at a time.sharingAllowlistList(long limit) Lists Approve List entries for given team, from newest to oldest, returning up to `limit` entries at a time.sharingAllowlistListContinue(String cursor) Lists entries associated with given team, starting from a the cursor.Endpoint removes Approve List entries.Endpoint removes Approve List entries.teamFolderActivate(String teamFolderId) Sets an archived team folder's status to active.teamFolderArchive(String teamFolderId) Sets an active team folder's status to archived and removes all folder and file members.teamFolderArchive(String teamFolderId, boolean forceAsyncOff) Sets an active team folder's status to archived and removes all folder and file members.teamFolderArchiveCheck(String asyncJobId) Returns the status of an asynchronous job for archiving a team folder.teamFolderCreate(String name) Creates a new, active, team folder with no members.teamFolderCreate(String name, SyncSettingArg syncSetting) Creates a new, active, team folder with no members.teamFolderGetInfo(List<String> teamFolderIds) Retrieves metadata for team folders.Lists all team folders.teamFolderList(long limit) Lists all team folders.teamFolderListContinue(String cursor) Once a cursor has been retrieved fromteamFolderList(long), use this to paginate through all team folders.voidteamFolderPermanentlyDelete(String teamFolderId) Permanently deletes an archived team folder.teamFolderRename(String teamFolderId, String name) Changes an active team folder's name.teamFolderRestore(String teamFolderId) Sets an inactive team folder's status to active.teamFolderUpdateSyncSettings(String teamFolderId) Updates the sync settings on a team folder or its contents.teamFolderUpdateSyncSettingsBuilder(String teamFolderId) Updates the sync settings on a team folder or its contents.Returns the member profile of the admin who generated the team access token used to make the call.
-
Constructor Details
-
DbxTeamTeamRequests
-
-
Method Details
-
devicesListMemberDevices
public ListMemberDevicesResult devicesListMemberDevices(String teamMemberId) throws ListMemberDevicesErrorException, DbxException List all device sessions of a team's member.The default values for the optional request parameters will be used. See
DevicesListMemberDevicesBuilderfor more details.- Parameters:
teamMemberId- The team's member id. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.ListMemberDevicesErrorExceptionDbxException
-
devicesListMemberDevicesBuilder
List all device sessions of a team's member.- Parameters:
teamMemberId- The team's member id. Must not benull.- Returns:
- Request builder for configuring request parameters and completing the request.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
devicesListMembersDevices
public ListMembersDevicesResult devicesListMembersDevices() throws ListMembersDevicesErrorException, DbxExceptionList all device sessions of a team. Permission : Team member file access.The default values for the optional request parameters will be used. See
DevicesListMembersDevicesBuilderfor more details. -
devicesListMembersDevicesBuilder
List all device sessions of a team. Permission : Team member file access.- Returns:
- Request builder for configuring request parameters and completing the request.
-
devicesListTeamDevices
@Deprecated public ListTeamDevicesResult devicesListTeamDevices() throws ListTeamDevicesErrorException, DbxExceptionDeprecated.List all device sessions of a team. Permission : Team member file access.The default values for the optional request parameters will be used. See
DevicesListTeamDevicesBuilderfor more details. -
devicesListTeamDevicesBuilder
Deprecated.List all device sessions of a team. Permission : Team member file access.- Returns:
- Request builder for configuring request parameters and completing the request.
-
devicesRevokeDeviceSession
public void devicesRevokeDeviceSession(RevokeDeviceSessionArg arg) throws RevokeDeviceSessionErrorException, DbxException Revoke a device session of a team's member. -
devicesRevokeDeviceSessionBatch
public RevokeDeviceSessionBatchResult devicesRevokeDeviceSessionBatch(List<RevokeDeviceSessionArg> revokeDevices) throws RevokeDeviceSessionBatchErrorException, DbxException Revoke a list of device sessions of team members.- Parameters:
revokeDevices- Must not contain anullitem and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.RevokeDeviceSessionBatchErrorExceptionDbxException
-
featuresGetValues
public FeaturesGetValuesBatchResult featuresGetValues(List<Feature> features) throws FeaturesGetValuesBatchErrorException, DbxException Get the values for one or more features. This route allows you to check your account's capability for what feature you can access or what value you have for certain features. Permission : Team information.- Parameters:
features- A list of features inFeature. If the list is empty, this route will returnFeaturesGetValuesBatchError. Must not contain anullitem and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.FeaturesGetValuesBatchErrorExceptionDbxException
-
getInfo
Retrieves information about a team.- Throws:
DbxApiExceptionDbxException
-
groupsCreate
Creates a new, empty group, with a requested name. Permission : Team member management.The default values for the optional request parameters will be used. See
GroupsCreateBuilderfor more details.- Parameters:
groupName- Group name. Must not benull.- Returns:
- Full description of a group.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.GroupCreateErrorExceptionDbxException
-
groupsCreateBuilder
Creates a new, empty group, with a requested name. Permission : Team member management.- Parameters:
groupName- Group name. Must not benull.- Returns:
- Request builder for configuring request parameters and completing the request.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
groupsDelete
public LaunchEmptyResult groupsDelete(GroupSelector arg) throws GroupDeleteErrorException, DbxException Deletes a group. The group is deleted immediately. However the revoking of group-owned resources may take additional time. Use thegroupsJobStatusGet(String)to determine whether this process has completed. Permission : Team member management.- Parameters:
arg- Argument for selecting a single group, either by group_id or by external group ID.- Returns:
- Result returned by methods that may either launch an asynchronous job or complete synchronously. Upon synchronous completion of the job, no additional information is returned.
- Throws:
GroupDeleteErrorExceptionDbxException
-
groupsGetInfo
public List<GroupsGetInfoItem> groupsGetInfo(GroupsSelector arg) throws GroupsGetInfoErrorException, DbxException Retrieves information about one or more groups. Note that the optional fieldGroupFullInfo.getMembers()is not returned for system-managed groups. Permission : Team Information.- Parameters:
arg- Argument for selecting a list of groups, either by group_ids, or external group IDs.- Throws:
GroupsGetInfoErrorExceptionDbxException
-
groupsJobStatusGet
public PollEmptyResult groupsJobStatusGet(String asyncJobId) throws GroupsPollErrorException, DbxException Once an async_job_id is returned fromgroupsDelete(com.dropbox.core.v2.team.GroupSelector),groupsMembersAdd(GroupSelector,List,boolean), orgroupsMembersRemove(GroupSelector,List,boolean)use this method to poll the status of granting/revoking group members' access to group-owned resources. Permission : Team member management.- Parameters:
asyncJobId- Id of the asynchronous job. This is the value of a response returned from the method that launched the job. Must have length of at least 1 and not benull.- Returns:
- Result returned by methods that poll for the status of an asynchronous job. Upon completion of the job, no additional information is returned.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.GroupsPollErrorExceptionDbxException
-
groupsList
Lists groups on a team. Permission : Team Information.The
limitrequest parameter will default to1000L(seegroupsList(long)).- Throws:
DbxApiExceptionDbxException
-
groupsList
Lists groups on a team. Permission : Team Information.- Parameters:
limit- Number of results to return per call. Must be greater than or equal to 1 and be less than or equal to 1000.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.DbxApiExceptionDbxException
-
groupsListContinue
public GroupsListResult groupsListContinue(String cursor) throws GroupsListContinueErrorException, DbxException Once a cursor has been retrieved fromgroupsList(long), use this to paginate through all groups. Permission : Team Information.- Parameters:
cursor- Indicates from what point to get the next set of groups. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.GroupsListContinueErrorExceptionDbxException
-
groupsMembersAdd
public GroupMembersChangeResult groupsMembersAdd(GroupSelector group, List<MemberAccess> members) throws GroupMembersAddErrorException, DbxException Adds members to a group. The members are added immediately. However the granting of group-owned resources may take additional time. Use thegroupsJobStatusGet(String)to determine whether this process has completed. Permission : Team member management.The
returnMembersrequest parameter will default totrue(seegroupsMembersAdd(GroupSelector,List,boolean)).- Parameters:
group- Group to which users will be added. Must not benull.members- List of users to be added to the group. Must not contain anullitem and not benull.- Returns:
- Result returned by
groupsMembersAdd(GroupSelector,List,boolean)andgroupsMembersRemove(GroupSelector,List,boolean). - Throws:
IllegalArgumentException- If any argument does not meet its preconditions.GroupMembersAddErrorExceptionDbxException
-
groupsMembersAdd
public GroupMembersChangeResult groupsMembersAdd(GroupSelector group, List<MemberAccess> members, boolean returnMembers) throws GroupMembersAddErrorException, DbxException Adds members to a group. The members are added immediately. However the granting of group-owned resources may take additional time. Use thegroupsJobStatusGet(String)to determine whether this process has completed. Permission : Team member management.- Parameters:
group- Group to which users will be added. Must not benull.members- List of users to be added to the group. Must not contain anullitem and not benull.returnMembers- Whether to return the list of members in the group. Note that the default value will cause all the group members to be returned in the response. This may take a long time for large groups.- Returns:
- Result returned by
groupsMembersAdd(GroupSelector,List,boolean)andgroupsMembersRemove(GroupSelector,List,boolean). - Throws:
IllegalArgumentException- If any argument does not meet its preconditions.GroupMembersAddErrorExceptionDbxException
-
groupsMembersList
public GroupsMembersListResult groupsMembersList(GroupSelector group) throws GroupSelectorErrorException, DbxException Lists members of a group. Permission : Team Information.The
limitrequest parameter will default to1000L(seegroupsMembersList(GroupSelector,long)).- Parameters:
group- The group whose members are to be listed. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.GroupSelectorErrorExceptionDbxException
-
groupsMembersList
public GroupsMembersListResult groupsMembersList(GroupSelector group, long limit) throws GroupSelectorErrorException, DbxException Lists members of a group. Permission : Team Information.- Parameters:
group- The group whose members are to be listed. Must not benull.limit- Number of results to return per call. Must be greater than or equal to 1 and be less than or equal to 1000.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.GroupSelectorErrorExceptionDbxException
-
groupsMembersListContinue
public GroupsMembersListResult groupsMembersListContinue(String cursor) throws GroupsMembersListContinueErrorException, DbxException Once a cursor has been retrieved fromgroupsMembersList(GroupSelector,long), use this to paginate through all members of the group. Permission : Team information.- Parameters:
cursor- Indicates from what point to get the next set of groups. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.GroupsMembersListContinueErrorExceptionDbxException
-
groupsMembersRemove
public GroupMembersChangeResult groupsMembersRemove(GroupSelector group, List<UserSelectorArg> users) throws GroupMembersRemoveErrorException, DbxException Removes members from a group. The members are removed immediately. However the revoking of group-owned resources may take additional time. Use thegroupsJobStatusGet(String)to determine whether this process has completed. This method permits removing the only owner of a group, even in cases where this is not possible via the web client. Permission : Team member management.The
returnMembersrequest parameter will default totrue(seegroupsMembersRemove(GroupSelector,List,boolean)).- Parameters:
group- Group from which users will be removed. Must not benull.users- List of users to be removed from the group. Must not contain anullitem and not benull.- Returns:
- Result returned by
groupsMembersAdd(GroupSelector,List,boolean)andgroupsMembersRemove(GroupSelector,List,boolean). - Throws:
IllegalArgumentException- If any argument does not meet its preconditions.GroupMembersRemoveErrorExceptionDbxException
-
groupsMembersRemove
public GroupMembersChangeResult groupsMembersRemove(GroupSelector group, List<UserSelectorArg> users, boolean returnMembers) throws GroupMembersRemoveErrorException, DbxException Removes members from a group. The members are removed immediately. However the revoking of group-owned resources may take additional time. Use thegroupsJobStatusGet(String)to determine whether this process has completed. This method permits removing the only owner of a group, even in cases where this is not possible via the web client. Permission : Team member management.- Parameters:
group- Group from which users will be removed. Must not benull.users- List of users to be removed from the group. Must not contain anullitem and not benull.returnMembers- Whether to return the list of members in the group. Note that the default value will cause all the group members to be returned in the response. This may take a long time for large groups.- Returns:
- Result returned by
groupsMembersAdd(GroupSelector,List,boolean)andgroupsMembersRemove(GroupSelector,List,boolean). - Throws:
IllegalArgumentException- If any argument does not meet its preconditions.GroupMembersRemoveErrorExceptionDbxException
-
groupsMembersSetAccessType
public List<GroupsGetInfoItem> groupsMembersSetAccessType(GroupSelector group, UserSelectorArg user, GroupAccessType accessType) throws GroupMemberSetAccessTypeErrorException, DbxException Sets a member's access type in a group. Permission : Team member management.The
returnMembersrequest parameter will default totrue(seegroupsMembersSetAccessType(GroupSelector,UserSelectorArg,GroupAccessType,boolean)).- Parameters:
group- Specify a group. Must not benull.user- Identity of a user that is a member of thegroupargument togroupsMembersSetAccessType(GroupSelector,UserSelectorArg,GroupAccessType,boolean). Must not benull.accessType- New group access type the user will have. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.GroupMemberSetAccessTypeErrorExceptionDbxException
-
groupsMembersSetAccessType
public List<GroupsGetInfoItem> groupsMembersSetAccessType(GroupSelector group, UserSelectorArg user, GroupAccessType accessType, boolean returnMembers) throws GroupMemberSetAccessTypeErrorException, DbxException Sets a member's access type in a group. Permission : Team member management.- Parameters:
group- Specify a group. Must not benull.user- Identity of a user that is a member of thegroupargument togroupsMembersSetAccessType(GroupSelector,UserSelectorArg,GroupAccessType,boolean). Must not benull.accessType- New group access type the user will have. Must not benull.returnMembers- Whether to return the list of members in the group. Note that the default value will cause all the group members to be returned in the response. This may take a long time for large groups.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.GroupMemberSetAccessTypeErrorExceptionDbxException
-
groupsUpdate
public GroupFullInfo groupsUpdate(GroupSelector group) throws GroupUpdateErrorException, DbxException Updates a group's name and/or external ID. Permission : Team member management.The default values for the optional request parameters will be used. See
GroupsUpdateBuilderfor more details.- Parameters:
group- Specify a group. Must not benull.- Returns:
- Full description of a group.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.GroupUpdateErrorExceptionDbxException
-
groupsUpdateBuilder
Updates a group's name and/or external ID. Permission : Team member management.- Parameters:
group- Specify a group. Must not benull.- Returns:
- Request builder for configuring request parameters and completing the request.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
legalHoldsCreatePolicy
public LegalHoldPolicy legalHoldsCreatePolicy(String name, List<String> members) throws LegalHoldsPolicyCreateErrorException, DbxException Creates new legal hold policy. Note: Legal Holds is a paid add-on. Not all teams have the feature. Permission : Team member file access.- Parameters:
name- Policy name. Must have length of at most 140 and not benull.members- List of team member IDs added to the hold. Must not contain anullitem and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.LegalHoldsPolicyCreateErrorExceptionDbxException
-
legalHoldsCreatePolicyBuilder
public LegalHoldsCreatePolicyBuilder legalHoldsCreatePolicyBuilder(String name, List<String> members) Creates new legal hold policy. Note: Legal Holds is a paid add-on. Not all teams have the feature. Permission : Team member file access.- Parameters:
name- Policy name. Must have length of at most 140 and not benull.members- List of team member IDs added to the hold. Must not contain anullitem and not benull.- Returns:
- Request builder for configuring request parameters and completing the request.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
legalHoldsGetPolicy
public LegalHoldPolicy legalHoldsGetPolicy(String id) throws LegalHoldsGetPolicyErrorException, DbxException Gets a legal hold by Id. Note: Legal Holds is a paid add-on. Not all teams have the feature. Permission : Team member file access.- Parameters:
id- The legal hold Id. Must match pattern "^pid_dbhid:.+" and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.LegalHoldsGetPolicyErrorExceptionDbxException
-
legalHoldsListHeldRevisions
public LegalHoldsListHeldRevisionResult legalHoldsListHeldRevisions(String id) throws LegalHoldsListHeldRevisionsErrorException, DbxException List the file metadata that's under the hold. Note: Legal Holds is a paid add-on. Not all teams have the feature. Permission : Team member file access.- Parameters:
id- The legal hold Id. Must match pattern "^pid_dbhid:.+" and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.LegalHoldsListHeldRevisionsErrorExceptionDbxException
-
legalHoldsListHeldRevisionsContinue
public LegalHoldsListHeldRevisionResult legalHoldsListHeldRevisionsContinue(String id) throws LegalHoldsListHeldRevisionsErrorException, DbxException Continue listing the file metadata that's under the hold. Note: Legal Holds is a paid add-on. Not all teams have the feature. Permission : Team member file access.- Parameters:
id- The legal hold Id. Must match pattern "^pid_dbhid:.+" and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.LegalHoldsListHeldRevisionsErrorExceptionDbxException
-
legalHoldsListHeldRevisionsContinue
public LegalHoldsListHeldRevisionResult legalHoldsListHeldRevisionsContinue(String id, String cursor) throws LegalHoldsListHeldRevisionsErrorException, DbxException Continue listing the file metadata that's under the hold. Note: Legal Holds is a paid add-on. Not all teams have the feature. Permission : Team member file access.- Parameters:
id- The legal hold Id. Must match pattern "^pid_dbhid:.+" and not benull.cursor- The cursor idicates where to continue reading file metadata entries for the next API call. When there are no more entries, the cursor will return none. Must have length of at least 1.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.LegalHoldsListHeldRevisionsErrorExceptionDbxException
-
legalHoldsListPolicies
public LegalHoldsListPoliciesResult legalHoldsListPolicies() throws LegalHoldsListPoliciesErrorException, DbxExceptionLists legal holds on a team. Note: Legal Holds is a paid add-on. Not all teams have the feature. Permission : Team member file access.The
includeReleasedrequest parameter will default tofalse(seelegalHoldsListPolicies(boolean)). -
legalHoldsListPolicies
public LegalHoldsListPoliciesResult legalHoldsListPolicies(boolean includeReleased) throws LegalHoldsListPoliciesErrorException, DbxException Lists legal holds on a team. Note: Legal Holds is a paid add-on. Not all teams have the feature. Permission : Team member file access.- Parameters:
includeReleased- Whether to return holds that were released.- Throws:
LegalHoldsListPoliciesErrorExceptionDbxException
-
legalHoldsReleasePolicy
public void legalHoldsReleasePolicy(String id) throws LegalHoldsPolicyReleaseErrorException, DbxException Releases a legal hold by Id. Note: Legal Holds is a paid add-on. Not all teams have the feature. Permission : Team member file access.- Parameters:
id- The legal hold Id. Must match pattern "^pid_dbhid:.+" and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.LegalHoldsPolicyReleaseErrorExceptionDbxException
-
legalHoldsUpdatePolicy
public LegalHoldPolicy legalHoldsUpdatePolicy(String id) throws LegalHoldsPolicyUpdateErrorException, DbxException Updates a legal hold. Note: Legal Holds is a paid add-on. Not all teams have the feature. Permission : Team member file access.- Parameters:
id- The legal hold Id. Must match pattern "^pid_dbhid:.+" and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.LegalHoldsPolicyUpdateErrorExceptionDbxException
-
legalHoldsUpdatePolicyBuilder
Updates a legal hold. Note: Legal Holds is a paid add-on. Not all teams have the feature. Permission : Team member file access.- Parameters:
id- The legal hold Id. Must match pattern "^pid_dbhid:.+" and not benull.- Returns:
- Request builder for configuring request parameters and completing the request.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
linkedAppsListMemberLinkedApps
public ListMemberAppsResult linkedAppsListMemberLinkedApps(String teamMemberId) throws ListMemberAppsErrorException, DbxException List all linked applications of the team member. Note, this endpoint does not list any team-linked applications.- Parameters:
teamMemberId- The team member id. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.ListMemberAppsErrorExceptionDbxException
-
linkedAppsListMembersLinkedApps
public ListMembersAppsResult linkedAppsListMembersLinkedApps() throws ListMembersAppsErrorException, DbxExceptionList all applications linked to the team members' accounts. Note, this endpoint does not list any team-linked applications.- Returns:
- Information returned by
linkedAppsListMembersLinkedApps(String). - Throws:
ListMembersAppsErrorExceptionDbxException
-
linkedAppsListMembersLinkedApps
public ListMembersAppsResult linkedAppsListMembersLinkedApps(String cursor) throws ListMembersAppsErrorException, DbxException List all applications linked to the team members' accounts. Note, this endpoint does not list any team-linked applications.- Parameters:
cursor- At the first call to thelinkedAppsListMembersLinkedApps(String)the cursor shouldn't be passed. Then, if the result of the call includes a cursor, the following requests should include the received cursors in order to receive the next sub list of the team applications.- Returns:
- Information returned by
linkedAppsListMembersLinkedApps(String). - Throws:
ListMembersAppsErrorExceptionDbxException
-
linkedAppsListTeamLinkedApps
@Deprecated public ListTeamAppsResult linkedAppsListTeamLinkedApps() throws ListTeamAppsErrorException, DbxExceptionDeprecated.List all applications linked to the team members' accounts. Note, this endpoint doesn't list any team-linked applications.- Returns:
- Information returned by
linkedAppsListTeamLinkedApps(String). - Throws:
ListTeamAppsErrorExceptionDbxException
-
linkedAppsListTeamLinkedApps
@Deprecated public ListTeamAppsResult linkedAppsListTeamLinkedApps(String cursor) throws ListTeamAppsErrorException, DbxException Deprecated.List all applications linked to the team members' accounts. Note, this endpoint doesn't list any team-linked applications.- Parameters:
cursor- At the first call to thelinkedAppsListTeamLinkedApps(String)the cursor shouldn't be passed. Then, if the result of the call includes a cursor, the following requests should include the received cursors in order to receive the next sub list of the team applications.- Returns:
- Information returned by
linkedAppsListTeamLinkedApps(String). - Throws:
ListTeamAppsErrorExceptionDbxException
-
linkedAppsRevokeLinkedApp
public void linkedAppsRevokeLinkedApp(String appId, String teamMemberId) throws RevokeLinkedAppErrorException, DbxException Revoke a linked application of the team member.The
keepAppFolderrequest parameter will default totrue(seelinkedAppsRevokeLinkedApp(String,String,boolean)).- Parameters:
appId- The application's unique id. Must not benull.teamMemberId- The unique id of the member owning the device. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.RevokeLinkedAppErrorExceptionDbxException
-
linkedAppsRevokeLinkedApp
public void linkedAppsRevokeLinkedApp(String appId, String teamMemberId, boolean keepAppFolder) throws RevokeLinkedAppErrorException, DbxException Revoke a linked application of the team member.- Parameters:
appId- The application's unique id. Must not benull.teamMemberId- The unique id of the member owning the device. Must not benull.keepAppFolder- Field is deprecated. This flag is not longer supported, the application dedicated folder (in case the application uses one) will be kept.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.RevokeLinkedAppErrorExceptionDbxException
-
linkedAppsRevokeLinkedAppBatch
public RevokeLinkedAppBatchResult linkedAppsRevokeLinkedAppBatch(List<RevokeLinkedApiAppArg> revokeLinkedApp) throws RevokeLinkedAppBatchErrorException, DbxException Revoke a list of linked applications of the team members.- Parameters:
revokeLinkedApp- Must not contain anullitem and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.RevokeLinkedAppBatchErrorExceptionDbxException
-
memberSpaceLimitsExcludedUsersAdd
public ExcludedUsersUpdateResult memberSpaceLimitsExcludedUsersAdd() throws ExcludedUsersUpdateErrorException, DbxExceptionAdd users to member space limits excluded users list.- Returns:
- Excluded users update result.
- Throws:
ExcludedUsersUpdateErrorExceptionDbxException
-
memberSpaceLimitsExcludedUsersAdd
public ExcludedUsersUpdateResult memberSpaceLimitsExcludedUsersAdd(List<UserSelectorArg> users) throws ExcludedUsersUpdateErrorException, DbxException Add users to member space limits excluded users list.- Parameters:
users- List of users to be added/removed. Must not contain anullitem.- Returns:
- Excluded users update result.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.ExcludedUsersUpdateErrorExceptionDbxException
-
memberSpaceLimitsExcludedUsersList
public ExcludedUsersListResult memberSpaceLimitsExcludedUsersList() throws ExcludedUsersListErrorException, DbxExceptionList member space limits excluded users.The
limitrequest parameter will default to1000L(seememberSpaceLimitsExcludedUsersList(long)).- Returns:
- Excluded users list result.
- Throws:
ExcludedUsersListErrorExceptionDbxException
-
memberSpaceLimitsExcludedUsersList
public ExcludedUsersListResult memberSpaceLimitsExcludedUsersList(long limit) throws ExcludedUsersListErrorException, DbxException List member space limits excluded users.- Parameters:
limit- Number of results to return per call. Must be greater than or equal to 1 and be less than or equal to 1000.- Returns:
- Excluded users list result.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.ExcludedUsersListErrorExceptionDbxException
-
memberSpaceLimitsExcludedUsersListContinue
public ExcludedUsersListResult memberSpaceLimitsExcludedUsersListContinue(String cursor) throws ExcludedUsersListContinueErrorException, DbxException Continue listing member space limits excluded users.- Parameters:
cursor- Indicates from what point to get the next set of users. Must not benull.- Returns:
- Excluded users list result.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.ExcludedUsersListContinueErrorExceptionDbxException
-
memberSpaceLimitsExcludedUsersRemove
public ExcludedUsersUpdateResult memberSpaceLimitsExcludedUsersRemove() throws ExcludedUsersUpdateErrorException, DbxExceptionRemove users from member space limits excluded users list.- Returns:
- Excluded users update result.
- Throws:
ExcludedUsersUpdateErrorExceptionDbxException
-
memberSpaceLimitsExcludedUsersRemove
public ExcludedUsersUpdateResult memberSpaceLimitsExcludedUsersRemove(List<UserSelectorArg> users) throws ExcludedUsersUpdateErrorException, DbxException Remove users from member space limits excluded users list.- Parameters:
users- List of users to be added/removed. Must not contain anullitem.- Returns:
- Excluded users update result.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.ExcludedUsersUpdateErrorExceptionDbxException
-
memberSpaceLimitsGetCustomQuota
public List<CustomQuotaResult> memberSpaceLimitsGetCustomQuota(List<UserSelectorArg> users) throws CustomQuotaErrorException, DbxException Get users custom quota. A maximum of 1000 members can be specified in a single call. Note: to apply a custom space limit, a team admin needs to set a member space limit for the team first. (the team admin can check the settings here: https://www.dropbox.com/team/admin/settings/space).- Parameters:
users- List of users. Must not contain anullitem and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.CustomQuotaErrorExceptionDbxException
-
memberSpaceLimitsRemoveCustomQuota
public List<RemoveCustomQuotaResult> memberSpaceLimitsRemoveCustomQuota(List<UserSelectorArg> users) throws CustomQuotaErrorException, DbxException Remove users custom quota. A maximum of 1000 members can be specified in a single call. Note: to apply a custom space limit, a team admin needs to set a member space limit for the team first. (the team admin can check the settings here: https://www.dropbox.com/team/admin/settings/space).- Parameters:
users- List of users. Must not contain anullitem and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.CustomQuotaErrorExceptionDbxException
-
memberSpaceLimitsSetCustomQuota
public List<CustomQuotaResult> memberSpaceLimitsSetCustomQuota(List<UserCustomQuotaArg> usersAndQuotas) throws SetCustomQuotaErrorException, DbxException Set users custom quota. Custom quota has to be at least 2GB. A maximum of 1000 members can be specified in a single call. Note: to apply a custom space limit, a team admin needs to set a member space limit for the team first. (the team admin can check the settings here: https://www.dropbox.com/team/admin/settings/space).- Parameters:
usersAndQuotas- List of users and their custom quotas. Must not contain anullitem and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.SetCustomQuotaErrorExceptionDbxException
-
membersAdd
public MembersAddLaunch membersAdd(List<MemberAddArg> newMembers) throws DbxApiException, DbxException Adds members to a team. Permission : Team member management A maximum of 20 members can be specified in a single call. If no Dropbox account exists with the email address specified, a new Dropbox account will be created with the given email address, and that account will be invited to the team. If a personal Dropbox account exists with the email address specified in the call, this call will create a placeholder Dropbox account for the user on the team and send an email inviting the user to migrate their existing personal account onto the team. Team member management apps are required to set an initial given_name and surname for a user to use in the team invitation and for 'Perform as team member' actions taken on the user before they become 'active'.The
forceAsyncrequest parameter will default tofalse(seemembersAdd(List,boolean)).- Parameters:
newMembers- Details of new members to be added to the team. Must not contain anullitem and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.DbxApiExceptionDbxException
-
membersAdd
public MembersAddLaunch membersAdd(List<MemberAddArg> newMembers, boolean forceAsync) throws DbxApiException, DbxException Adds members to a team. Permission : Team member management A maximum of 20 members can be specified in a single call. If no Dropbox account exists with the email address specified, a new Dropbox account will be created with the given email address, and that account will be invited to the team. If a personal Dropbox account exists with the email address specified in the call, this call will create a placeholder Dropbox account for the user on the team and send an email inviting the user to migrate their existing personal account onto the team. Team member management apps are required to set an initial given_name and surname for a user to use in the team invitation and for 'Perform as team member' actions taken on the user before they become 'active'.- Parameters:
newMembers- Details of new members to be added to the team. Must not contain anullitem and not benull.forceAsync- Whether to force the add to happen asynchronously.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.DbxApiExceptionDbxException
-
membersAddV2
public MembersAddLaunchV2Result membersAddV2(List<MemberAddV2Arg> newMembers) throws DbxApiException, DbxException Adds members to a team. Permission : Team member management A maximum of 20 members can be specified in a single call. If no Dropbox account exists with the email address specified, a new Dropbox account will be created with the given email address, and that account will be invited to the team. If a personal Dropbox account exists with the email address specified in the call, this call will create a placeholder Dropbox account for the user on the team and send an email inviting the user to migrate their existing personal account onto the team.The
forceAsyncrequest parameter will default tofalse(seemembersAddV2(List,boolean)).- Parameters:
newMembers- Details of new members to be added to the team. Must not contain anullitem and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.DbxApiExceptionDbxException
-
membersAddV2
public MembersAddLaunchV2Result membersAddV2(List<MemberAddV2Arg> newMembers, boolean forceAsync) throws DbxApiException, DbxException Adds members to a team. Permission : Team member management A maximum of 20 members can be specified in a single call. If no Dropbox account exists with the email address specified, a new Dropbox account will be created with the given email address, and that account will be invited to the team. If a personal Dropbox account exists with the email address specified in the call, this call will create a placeholder Dropbox account for the user on the team and send an email inviting the user to migrate their existing personal account onto the team.- Parameters:
newMembers- Details of new members to be added to the team. Must not contain anullitem and not benull.forceAsync- Whether to force the add to happen asynchronously.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.DbxApiExceptionDbxException
-
membersAddJobStatusGet
public MembersAddJobStatus membersAddJobStatusGet(String asyncJobId) throws PollErrorException, DbxException Once an async_job_id is returned frommembersAdd(List,boolean), use this to poll the status of the asynchronous request. Permission : Team member management.- Parameters:
asyncJobId- Id of the asynchronous job. This is the value of a response returned from the method that launched the job. Must have length of at least 1 and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.PollErrorExceptionDbxException
-
membersAddJobStatusGetV2
public MembersAddJobStatusV2Result membersAddJobStatusGetV2(String asyncJobId) throws PollErrorException, DbxException Once an async_job_id is returned frommembersAddV2(List,boolean), use this to poll the status of the asynchronous request. Permission : Team member management.- Parameters:
asyncJobId- Id of the asynchronous job. This is the value of a response returned from the method that launched the job. Must have length of at least 1 and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.PollErrorExceptionDbxException
-
membersDeleteFormerMemberFiles
public void membersDeleteFormerMemberFiles(UserSelectorArg user) throws MembersDeleteFormerMemberFilesErrorException, DbxException Permanently delete the files of a user who has been removed from the team. After permanent deletion, those files will not be available to be transferred to another team member. Permission : Team member management Exactly one of team_member_id, email, or external_id must be provided to identify the user account.- Parameters:
user- Identity of user whose files will be permanently deleted. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.MembersDeleteFormerMemberFilesErrorExceptionDbxException
-
membersDeleteProfilePhoto
public TeamMemberInfo membersDeleteProfilePhoto(UserSelectorArg user) throws MembersDeleteProfilePhotoErrorException, DbxException Deletes a team member's profile photo. Permission : Team member management.- Parameters:
user- Identity of the user whose profile photo will be deleted. Must not benull.- Returns:
- Information about a team member.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.MembersDeleteProfilePhotoErrorExceptionDbxException
-
membersDeleteProfilePhotoV2
public TeamMemberInfoV2Result membersDeleteProfilePhotoV2(UserSelectorArg user) throws MembersDeleteProfilePhotoErrorException, DbxException Deletes a team member's profile photo. Permission : Team member management.- Parameters:
user- Identity of the user whose profile photo will be deleted. Must not benull.- Returns:
- Information about a team member, after the change, like at
membersSetProfileV2(UserSelectorArg). - Throws:
IllegalArgumentException- If any argument does not meet its preconditions.MembersDeleteProfilePhotoErrorExceptionDbxException
-
membersGetAvailableTeamMemberRoles
public MembersGetAvailableTeamMemberRolesResult membersGetAvailableTeamMemberRoles() throws DbxApiException, DbxExceptionGet available TeamMemberRoles for the connected team. To be used withmembersSetAdminPermissionsV2(UserSelectorArg,List). Permission : Team member management.- Returns:
- Available TeamMemberRole for the connected team. To be used with
membersSetAdminPermissionsV2(UserSelectorArg,List). - Throws:
DbxApiExceptionDbxException
-
membersGetInfo
public List<MembersGetInfoItem> membersGetInfo(List<UserSelectorArg> members) throws MembersGetInfoErrorException, DbxException Returns information about multiple team members. Permission : Team information This endpoint will returnMembersGetInfoItem.getIdNotFoundValue(), for IDs (or emails) that cannot be matched to a valid team member.- Parameters:
members- List of team members. Must not contain anullitem and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.MembersGetInfoErrorExceptionDbxException
-
membersGetInfoV2
public MembersGetInfoV2Result membersGetInfoV2(List<UserSelectorArg> members) throws MembersGetInfoErrorException, DbxException Returns information about multiple team members. Permission : Team information This endpoint will returnMembersGetInfoItem.getIdNotFoundValue(), for IDs (or emails) that cannot be matched to a valid team member.- Parameters:
members- List of team members. Must not contain anullitem and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.MembersGetInfoErrorExceptionDbxException
-
membersList
Lists members of a team. Permission : Team information.The default values for the optional request parameters will be used. See
MembersListBuilderfor more details. -
membersListBuilder
Lists members of a team. Permission : Team information.- Returns:
- Request builder for configuring request parameters and completing the request.
-
membersListV2
Lists members of a team. Permission : Team information.The default values for the optional request parameters will be used. See
MembersListV2Builderfor more details. -
membersListV2Builder
Lists members of a team. Permission : Team information.- Returns:
- Request builder for configuring request parameters and completing the request.
-
membersListContinue
public MembersListResult membersListContinue(String cursor) throws MembersListContinueErrorException, DbxException Once a cursor has been retrieved frommembersList(com.dropbox.core.v2.team.MembersListArg), use this to paginate through all team members. Permission : Team information.- Parameters:
cursor- Indicates from what point to get the next set of members. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.MembersListContinueErrorExceptionDbxException
-
membersListContinueV2
public MembersListV2Result membersListContinueV2(String cursor) throws MembersListContinueErrorException, DbxException Once a cursor has been retrieved frommembersListV2(com.dropbox.core.v2.team.MembersListArg), use this to paginate through all team members. Permission : Team information.- Parameters:
cursor- Indicates from what point to get the next set of members. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.MembersListContinueErrorExceptionDbxException
-
membersMoveFormerMemberFiles
public LaunchEmptyResult membersMoveFormerMemberFiles(UserSelectorArg user, UserSelectorArg transferDestId, UserSelectorArg transferAdminId) throws MembersTransferFormerMembersFilesErrorException, DbxException Moves removed member's files to a different member. This endpoint initiates an asynchronous job. To obtain the final result of the job, the client should periodically pollmembersMoveFormerMemberFilesJobStatusCheck(String). Permission : Team member management.- Parameters:
user- Identity of user to remove/suspend/have their files moved. Must not benull.transferDestId- Files from the deleted member account will be transferred to this user. Must not benull.transferAdminId- Errors during the transfer process will be sent via email to this user. Must not benull.- Returns:
- Result returned by methods that may either launch an asynchronous job or complete synchronously. Upon synchronous completion of the job, no additional information is returned.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.MembersTransferFormerMembersFilesErrorExceptionDbxException
-
membersMoveFormerMemberFilesJobStatusCheck
public PollEmptyResult membersMoveFormerMemberFilesJobStatusCheck(String asyncJobId) throws PollErrorException, DbxException Once an async_job_id is returned frommembersMoveFormerMemberFiles(UserSelectorArg,UserSelectorArg,UserSelectorArg), use this to poll the status of the asynchronous request. Permission : Team member management.- Parameters:
asyncJobId- Id of the asynchronous job. This is the value of a response returned from the method that launched the job. Must have length of at least 1 and not benull.- Returns:
- Result returned by methods that poll for the status of an asynchronous job. Upon completion of the job, no additional information is returned.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.PollErrorExceptionDbxException
-
membersRecover
Recover a deleted member. Permission : Team member management Exactly one of team_member_id, email, or external_id must be provided to identify the user account.- Parameters:
user- Identity of user to recover. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.MembersRecoverErrorExceptionDbxException
-
membersRemove
public LaunchEmptyResult membersRemove(UserSelectorArg user) throws MembersRemoveErrorException, DbxException Removes a member from a team. Permission : Team member management Exactly one of team_member_id, email, or external_id must be provided to identify the user account. Accounts can be recovered viamembersRecover(UserSelectorArg)for a 7 day period or until the account has been permanently deleted or transferred to another account (whichever comes first). CallingmembersAdd(List,boolean)while a user is still recoverable on your team will return withMemberAddResult.getUserAlreadyOnTeamValue(). Accounts can have their files transferred via the admin console for a limited time, based on the version history length associated with the team (180 days for most teams). Accounts can have their stacks transferred through the admin console. This only transfers stacks that they have created. This endpoint may initiate an asynchronous job. To obtain the final result of the job, the client should periodically pollmembersRemoveJobStatusGet(String).The default values for the optional request parameters will be used. See
MembersRemoveBuilderfor more details.- Parameters:
user- Identity of user to remove/suspend/have their files moved. Must not benull.- Returns:
- Result returned by methods that may either launch an asynchronous job or complete synchronously. Upon synchronous completion of the job, no additional information is returned.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.MembersRemoveErrorExceptionDbxException
-
membersRemoveBuilder
Removes a member from a team. Permission : Team member management Exactly one of team_member_id, email, or external_id must be provided to identify the user account. Accounts can be recovered viamembersRecover(UserSelectorArg)for a 7 day period or until the account has been permanently deleted or transferred to another account (whichever comes first). CallingmembersAdd(List,boolean)while a user is still recoverable on your team will return withMemberAddResult.getUserAlreadyOnTeamValue(). Accounts can have their files transferred via the admin console for a limited time, based on the version history length associated with the team (180 days for most teams). Accounts can have their stacks transferred through the admin console. This only transfers stacks that they have created. This endpoint may initiate an asynchronous job. To obtain the final result of the job, the client should periodically pollmembersRemoveJobStatusGet(String).- Parameters:
user- Identity of user to remove/suspend/have their files moved. Must not benull.- Returns:
- Request builder for configuring request parameters and completing the request.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
membersRemoveJobStatusGet
public PollEmptyResult membersRemoveJobStatusGet(String asyncJobId) throws PollErrorException, DbxException Once an async_job_id is returned frommembersRemove(UserSelectorArg), use this to poll the status of the asynchronous request. Permission : Team member management.- Parameters:
asyncJobId- Id of the asynchronous job. This is the value of a response returned from the method that launched the job. Must have length of at least 1 and not benull.- Returns:
- Result returned by methods that poll for the status of an asynchronous job. Upon completion of the job, no additional information is returned.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.PollErrorExceptionDbxException
-
membersSecondaryEmailsAdd
public AddSecondaryEmailsResult membersSecondaryEmailsAdd(List<UserSecondaryEmailsArg> newSecondaryEmails) throws AddSecondaryEmailsErrorException, DbxException Add secondary emails to users. Permission : Team member management. Emails that are on verified domains will be verified automatically. For each email address not on a verified domain a verification email will be sent.- Parameters:
newSecondaryEmails- List of users and secondary emails to add. Must not contain anullitem and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.AddSecondaryEmailsErrorExceptionDbxException
-
membersSecondaryEmailsDelete
public DeleteSecondaryEmailsResult membersSecondaryEmailsDelete(List<UserSecondaryEmailsArg> emailsToDelete) throws DbxApiException, DbxException Delete secondary emails from users Permission : Team member management. Users will be notified of deletions of verified secondary emails at both the secondary email and their primary email.- Parameters:
emailsToDelete- List of users and their secondary emails to delete. Must not contain anullitem and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.DbxApiExceptionDbxException
-
membersSecondaryEmailsResendVerificationEmails
public ResendVerificationEmailResult membersSecondaryEmailsResendVerificationEmails(List<UserSecondaryEmailsArg> emailsToResend) throws DbxApiException, DbxException Resend secondary email verification emails. Permission : Team member management.- Parameters:
emailsToResend- List of users and secondary emails to resend verification emails to. Must not contain anullitem and not benull.- Returns:
- List of users and resend results.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.DbxApiExceptionDbxException
-
membersSendWelcomeEmail
public void membersSendWelcomeEmail(UserSelectorArg arg) throws MembersSendWelcomeErrorException, DbxException Sends welcome email to pending team member. Permission : Team member management Exactly one of team_member_id, email, or external_id must be provided to identify the user account. No-op if team member is not pending.- Parameters:
arg- Argument for selecting a single user, either by team_member_id, external_id or email.- Throws:
MembersSendWelcomeErrorExceptionDbxException
-
membersSetAdminPermissions
public MembersSetPermissionsResult membersSetAdminPermissions(UserSelectorArg user, AdminTier newRole) throws MembersSetPermissionsErrorException, DbxException Updates a team member's permissions. Permission : Team member management.- Parameters:
user- Identity of user whose role will be set. Must not benull.newRole- The new role of the member. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.MembersSetPermissionsErrorExceptionDbxException
-
membersSetAdminPermissionsV2
public MembersSetPermissions2Result membersSetAdminPermissionsV2(UserSelectorArg user) throws MembersSetPermissions2ErrorException, DbxException Updates a team member's permissions. Permission : Team member management.- Parameters:
user- Identity of user whose role will be set. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.MembersSetPermissions2ErrorExceptionDbxException
-
membersSetAdminPermissionsV2
public MembersSetPermissions2Result membersSetAdminPermissionsV2(UserSelectorArg user, List<String> newRoles) throws MembersSetPermissions2ErrorException, DbxException Updates a team member's permissions. Permission : Team member management.- Parameters:
user- Identity of user whose role will be set. Must not benull.newRoles- The new roles for the member. Send empty list to make user member only. For now, only up to one role is allowed. Must contain at most 1 items and not contain anullitem.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.MembersSetPermissions2ErrorExceptionDbxException
-
membersSetProfile
public TeamMemberInfo membersSetProfile(UserSelectorArg user) throws MembersSetProfileErrorException, DbxException Updates a team member's profile. Permission : Team member management.- Parameters:
user- Identity of user whose profile will be set. Must not benull.- Returns:
- Information about a team member.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.MembersSetProfileErrorExceptionDbxException
-
membersSetProfileBuilder
Updates a team member's profile. Permission : Team member management.- Parameters:
user- Identity of user whose profile will be set. Must not benull.- Returns:
- Request builder for configuring request parameters and completing the request.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
membersSetProfileV2
public TeamMemberInfoV2Result membersSetProfileV2(UserSelectorArg user) throws MembersSetProfileErrorException, DbxException Updates a team member's profile. Permission : Team member management.- Parameters:
user- Identity of user whose profile will be set. Must not benull.- Returns:
- Information about a team member, after the change, like at
membersSetProfileV2(UserSelectorArg). - Throws:
IllegalArgumentException- If any argument does not meet its preconditions.MembersSetProfileErrorExceptionDbxException
-
membersSetProfileV2Builder
Updates a team member's profile. Permission : Team member management.- Parameters:
user- Identity of user whose profile will be set. Must not benull.- Returns:
- Request builder for configuring request parameters and completing the request.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
membersSetProfilePhoto
public TeamMemberInfo membersSetProfilePhoto(UserSelectorArg user, PhotoSourceArg photo) throws MembersSetProfilePhotoErrorException, DbxException Updates a team member's profile photo. Permission : Team member management.- Parameters:
user- Identity of the user whose profile photo will be set. Must not benull.photo- Image to set as the member's new profile photo. Must not benull.- Returns:
- Information about a team member.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.MembersSetProfilePhotoErrorExceptionDbxException
-
membersSetProfilePhotoV2
public TeamMemberInfoV2Result membersSetProfilePhotoV2(UserSelectorArg user, PhotoSourceArg photo) throws MembersSetProfilePhotoErrorException, DbxException Updates a team member's profile photo. Permission : Team member management.- Parameters:
user- Identity of the user whose profile photo will be set. Must not benull.photo- Image to set as the member's new profile photo. Must not benull.- Returns:
- Information about a team member, after the change, like at
membersSetProfileV2(UserSelectorArg). - Throws:
IllegalArgumentException- If any argument does not meet its preconditions.MembersSetProfilePhotoErrorExceptionDbxException
-
membersSuspend
Suspend a member from a team. Permission : Team member management Exactly one of team_member_id, email, or external_id must be provided to identify the user account.The
wipeDatarequest parameter will default totrue(seemembersSuspend(UserSelectorArg,boolean)).- Parameters:
user- Identity of user to remove/suspend/have their files moved. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.MembersSuspendErrorExceptionDbxException
-
membersSuspend
public void membersSuspend(UserSelectorArg user, boolean wipeData) throws MembersSuspendErrorException, DbxException Suspend a member from a team. Permission : Team member management Exactly one of team_member_id, email, or external_id must be provided to identify the user account.- Parameters:
user- Identity of user to remove/suspend/have their files moved. Must not benull.wipeData- If provided, controls if the user's data will be deleted on their linked devices.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.MembersSuspendErrorExceptionDbxException
-
membersUnsuspend
public void membersUnsuspend(UserSelectorArg user) throws MembersUnsuspendErrorException, DbxException Unsuspend a member from a team. Permission : Team member management Exactly one of team_member_id, email, or external_id must be provided to identify the user account.- Parameters:
user- Identity of user to unsuspend. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.MembersUnsuspendErrorExceptionDbxException
-
namespacesList
public TeamNamespacesListResult namespacesList() throws TeamNamespacesListErrorException, DbxExceptionReturns a list of all team-accessible namespaces. This list includes team folders, shared folders containing team members, team members' home namespaces, and team members' app folders. Home namespaces and app folders are always owned by this team or members of the team, but shared folders may be owned by other users or other teams. Duplicates may occur in the list.The
limitrequest parameter will default to1000L(seenamespacesList(long)).- Returns:
- Result for
namespacesList(long). - Throws:
TeamNamespacesListErrorExceptionDbxException
-
namespacesList
public TeamNamespacesListResult namespacesList(long limit) throws TeamNamespacesListErrorException, DbxException Returns a list of all team-accessible namespaces. This list includes team folders, shared folders containing team members, team members' home namespaces, and team members' app folders. Home namespaces and app folders are always owned by this team or members of the team, but shared folders may be owned by other users or other teams. Duplicates may occur in the list.- Parameters:
limit- Field is deprecated. Specifying a value here has no effect. Must be greater than or equal to 1 and be less than or equal to 1000.- Returns:
- Result for
namespacesList(long). - Throws:
IllegalArgumentException- If any argument does not meet its preconditions.TeamNamespacesListErrorExceptionDbxException
-
namespacesListContinue
public TeamNamespacesListResult namespacesListContinue(String cursor) throws TeamNamespacesListContinueErrorException, DbxException Once a cursor has been retrieved fromnamespacesList(long), use this to paginate through all team-accessible namespaces. Duplicates may occur in the list.- Parameters:
cursor- Indicates from what point to get the next set of team-accessible namespaces. Must not benull.- Returns:
- Result for
namespacesList(long). - Throws:
IllegalArgumentException- If any argument does not meet its preconditions.TeamNamespacesListContinueErrorExceptionDbxException
-
propertiesTemplateAdd
@Deprecated public AddTemplateResult propertiesTemplateAdd(String name, String description, List<PropertyFieldTemplate> fields) throws ModifyTemplateErrorException, DbxException Deprecated.Permission : Team member file access.- Parameters:
name- Display name for the template. Template names can be up to 256 bytes. Must not benull.description- Description for the template. Template descriptions can be up to 1024 bytes. Must not benull.fields- Definitions of the property fields associated with this template. There can be up to 32 properties in a single template. Must not contain anullitem and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.ModifyTemplateErrorExceptionDbxException
-
propertiesTemplateGet
@Deprecated public GetTemplateResult propertiesTemplateGet(String templateId) throws TemplateErrorException, DbxException Deprecated.Permission : Team member file access. The scope for the route is files.team_metadata.write.- Parameters:
templateId- An identifier for template added by route SeeDbxUserFilePropertiesRequests.templatesAddForUser(String,String,List)orDbxTeamFilePropertiesRequests.templatesAddForTeam(String,String,List). Must have length of at least 1, match pattern "(/|ptid:).*", and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.TemplateErrorExceptionDbxException
-
reportsGetActivity
@Deprecated public GetActivityReport reportsGetActivity() throws DateRangeErrorException, DbxExceptionDeprecated.Retrieves reporting data about a team's user activity. Deprecated: Will be removed on July 1st 2021.- Returns:
- Activity Report Result. Each of the items in the storage report is an array of values, one value per day. If there is no data for a day, then the value will be None.
- Throws:
DateRangeErrorExceptionDbxException
-
reportsGetActivityBuilder
Deprecated.Retrieves reporting data about a team's user activity. Deprecated: Will be removed on July 1st 2021.- Returns:
- Request builder for configuring request parameters and completing the request.
-
reportsGetDevices
@Deprecated public GetDevicesReport reportsGetDevices() throws DateRangeErrorException, DbxExceptionDeprecated.Retrieves reporting data about a team's linked devices. Deprecated: Will be removed on July 1st 2021.- Returns:
- Devices Report Result. Contains subsections for different time ranges of activity. Each of the items in each subsection of the storage report is an array of values, one value per day. If there is no data for a day, then the value will be None.
- Throws:
DateRangeErrorExceptionDbxException
-
reportsGetDevicesBuilder
Deprecated.Retrieves reporting data about a team's linked devices. Deprecated: Will be removed on July 1st 2021.- Returns:
- Request builder for configuring request parameters and completing the request.
-
reportsGetMembership
@Deprecated public GetMembershipReport reportsGetMembership() throws DateRangeErrorException, DbxExceptionDeprecated.Retrieves reporting data about a team's membership. Deprecated: Will be removed on July 1st 2021.- Returns:
- Membership Report Result. Each of the items in the storage report is an array of values, one value per day. If there is no data for a day, then the value will be None.
- Throws:
DateRangeErrorExceptionDbxException
-
reportsGetMembershipBuilder
Deprecated.Retrieves reporting data about a team's membership. Deprecated: Will be removed on July 1st 2021.- Returns:
- Request builder for configuring request parameters and completing the request.
-
reportsGetStorage
@Deprecated public GetStorageReport reportsGetStorage() throws DateRangeErrorException, DbxExceptionDeprecated.Retrieves reporting data about a team's storage usage. Deprecated: Will be removed on July 1st 2021.- Returns:
- Storage Report Result. Each of the items in the storage report is an array of values, one value per day. If there is no data for a day, then the value will be None.
- Throws:
DateRangeErrorExceptionDbxException
-
reportsGetStorageBuilder
Deprecated.Retrieves reporting data about a team's storage usage. Deprecated: Will be removed on July 1st 2021.- Returns:
- Request builder for configuring request parameters and completing the request.
-
sharingAllowlistAdd
public SharingAllowlistAddResponse sharingAllowlistAdd() throws SharingAllowlistAddErrorException, DbxExceptionEndpoint adds Approve List entries. Changes are effective immediately. Changes are committed in transaction. In case of single validation error - all entries are rejected. Valid domains (RFC-1034/5) and emails (RFC-5322/822) are accepted. Added entries cannot overflow limit of 10000 entries per team. Maximum 100 entries per call is allowed.- Returns:
- This struct is empty. The comment here is intentionally emitted to avoid indentation issues with Stone.
- Throws:
SharingAllowlistAddErrorExceptionDbxException
-
sharingAllowlistAddBuilder
Endpoint adds Approve List entries. Changes are effective immediately. Changes are committed in transaction. In case of single validation error - all entries are rejected. Valid domains (RFC-1034/5) and emails (RFC-5322/822) are accepted. Added entries cannot overflow limit of 10000 entries per team. Maximum 100 entries per call is allowed.- Returns:
- Request builder for configuring request parameters and completing the request.
-
sharingAllowlistList
public SharingAllowlistListResponse sharingAllowlistList() throws SharingAllowlistListErrorException, DbxExceptionLists Approve List entries for given team, from newest to oldest, returning up to `limit` entries at a time. If there are more than `limit` entries associated with the current team, more can be fetched by passing the returned `cursor` tosharingAllowlistListContinue(String).The
limitrequest parameter will default to1000L(seesharingAllowlistList(long)). -
sharingAllowlistList
public SharingAllowlistListResponse sharingAllowlistList(long limit) throws SharingAllowlistListErrorException, DbxException Lists Approve List entries for given team, from newest to oldest, returning up to `limit` entries at a time. If there are more than `limit` entries associated with the current team, more can be fetched by passing the returned `cursor` tosharingAllowlistListContinue(String).- Parameters:
limit- The number of entries to fetch at one time. Must be greater than or equal to 1 and be less than or equal to 1000.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.SharingAllowlistListErrorExceptionDbxException
-
sharingAllowlistListContinue
public SharingAllowlistListResponse sharingAllowlistListContinue(String cursor) throws SharingAllowlistListContinueErrorException, DbxException Lists entries associated with given team, starting from a the cursor. SeesharingAllowlistList(long).- Parameters:
cursor- The cursor returned from a previous call tosharingAllowlistList(long)orsharingAllowlistListContinue(String). Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.SharingAllowlistListContinueErrorExceptionDbxException
-
sharingAllowlistRemove
public SharingAllowlistRemoveResponse sharingAllowlistRemove() throws SharingAllowlistRemoveErrorException, DbxExceptionEndpoint removes Approve List entries. Changes are effective immediately. Changes are committed in transaction. In case of single validation error - all entries are rejected. Valid domains (RFC-1034/5) and emails (RFC-5322/822) are accepted. Entries being removed have to be present on the list. Maximum 1000 entries per call is allowed.- Returns:
- This struct is empty. The comment here is intentionally emitted to avoid indentation issues with Stone.
- Throws:
SharingAllowlistRemoveErrorExceptionDbxException
-
sharingAllowlistRemoveBuilder
Endpoint removes Approve List entries. Changes are effective immediately. Changes are committed in transaction. In case of single validation error - all entries are rejected. Valid domains (RFC-1034/5) and emails (RFC-5322/822) are accepted. Entries being removed have to be present on the list. Maximum 1000 entries per call is allowed.- Returns:
- Request builder for configuring request parameters and completing the request.
-
teamFolderActivate
public TeamFolderMetadata teamFolderActivate(String teamFolderId) throws TeamFolderActivateErrorException, DbxException Sets an archived team folder's status to active. Permission : Team member file access.- Parameters:
teamFolderId- The ID of the team folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.- Returns:
- Properties of a team folder.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.TeamFolderActivateErrorExceptionDbxException
-
teamFolderArchive
public TeamFolderArchiveLaunch teamFolderArchive(String teamFolderId) throws TeamFolderArchiveErrorException, DbxException Sets an active team folder's status to archived and removes all folder and file members. This endpoint cannot be used for teams that have a shared team space. This route will either finish synchronously, or return a job ID and do the async archive job in background. Please use team_folder/archive/check to check the job status. Permission : Team member file access.The
forceAsyncOffrequest parameter will default tofalse(seeteamFolderArchive(String,boolean)).- Parameters:
teamFolderId- The ID of the team folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.TeamFolderArchiveErrorExceptionDbxException
-
teamFolderArchive
public TeamFolderArchiveLaunch teamFolderArchive(String teamFolderId, boolean forceAsyncOff) throws TeamFolderArchiveErrorException, DbxException Sets an active team folder's status to archived and removes all folder and file members. This endpoint cannot be used for teams that have a shared team space. This route will either finish synchronously, or return a job ID and do the async archive job in background. Please use team_folder/archive/check to check the job status. Permission : Team member file access.- Parameters:
teamFolderId- The ID of the team folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.forceAsyncOff- Whether to force the archive to happen synchronously.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.TeamFolderArchiveErrorExceptionDbxException
-
teamFolderArchiveCheck
public TeamFolderArchiveJobStatus teamFolderArchiveCheck(String asyncJobId) throws PollErrorException, DbxException Returns the status of an asynchronous job for archiving a team folder. The job may show '.tag' as complete, but the team folder could still be in the process of archiving (indicated byTeamFolderMetadata.getStatus()with 'archive_in_progress'). To confirm that the team folder is fully archived, check the fieldTeamFolderMetadata.getStatus()in the response for the value 'archived'. Permission : Team member file access.- Parameters:
asyncJobId- Id of the asynchronous job. This is the value of a response returned from the method that launched the job. Must have length of at least 1 and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.PollErrorExceptionDbxException
-
teamFolderCreate
public TeamFolderMetadata teamFolderCreate(String name) throws TeamFolderCreateErrorException, DbxException Creates a new, active, team folder with no members. This endpoint can only be used for teams that do not already have a shared team space. Permission : Team member file access.- Parameters:
name- Name for the new team folder. Must not benull.- Returns:
- Properties of a team folder.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.TeamFolderCreateErrorExceptionDbxException
-
teamFolderCreate
public TeamFolderMetadata teamFolderCreate(String name, SyncSettingArg syncSetting) throws TeamFolderCreateErrorException, DbxException Creates a new, active, team folder with no members. This endpoint can only be used for teams that do not already have a shared team space. Permission : Team member file access.- Parameters:
name- Name for the new team folder. Must not benull.syncSetting- The sync setting to apply to this team folder. Only permitted if the team has team selective sync enabled.- Returns:
- Properties of a team folder.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.TeamFolderCreateErrorExceptionDbxException
-
teamFolderGetInfo
public List<TeamFolderGetInfoItem> teamFolderGetInfo(List<String> teamFolderIds) throws DbxApiException, DbxException Retrieves metadata for team folders. Permission : Team member file access.- Parameters:
teamFolderIds- The list of team folder IDs. Must contain at least 1 items, not contain anullitem, and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.DbxApiExceptionDbxException
-
teamFolderList
Lists all team folders. Permission : Team member file access.The
limitrequest parameter will default to1000L(seeteamFolderList(long)).- Returns:
- Result for
teamFolderList(long)andteamFolderListContinue(String). - Throws:
TeamFolderListErrorExceptionDbxException
-
teamFolderList
public TeamFolderListResult teamFolderList(long limit) throws TeamFolderListErrorException, DbxException Lists all team folders. Permission : Team member file access.- Parameters:
limit- The maximum number of results to return per request. Must be greater than or equal to 1 and be less than or equal to 1000.- Returns:
- Result for
teamFolderList(long)andteamFolderListContinue(String). - Throws:
IllegalArgumentException- If any argument does not meet its preconditions.TeamFolderListErrorExceptionDbxException
-
teamFolderListContinue
public TeamFolderListResult teamFolderListContinue(String cursor) throws TeamFolderListContinueErrorException, DbxException Once a cursor has been retrieved fromteamFolderList(long), use this to paginate through all team folders. Permission : Team member file access.- Parameters:
cursor- Indicates from what point to get the next set of team folders. Must not benull.- Returns:
- Result for
teamFolderList(long)andteamFolderListContinue(String). - Throws:
IllegalArgumentException- If any argument does not meet its preconditions.TeamFolderListContinueErrorExceptionDbxException
-
teamFolderPermanentlyDelete
public void teamFolderPermanentlyDelete(String teamFolderId) throws TeamFolderPermanentlyDeleteErrorException, DbxException Permanently deletes an archived team folder. This endpoint cannot be used for teams that have a shared team space. Permission : Team member file access.- Parameters:
teamFolderId- The ID of the team folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.TeamFolderPermanentlyDeleteErrorExceptionDbxException
-
teamFolderRename
public TeamFolderMetadata teamFolderRename(String teamFolderId, String name) throws TeamFolderRenameErrorException, DbxException Changes an active team folder's name. Permission : Team member file access.- Parameters:
teamFolderId- The ID of the team folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.name- New team folder name. Must not benull.- Returns:
- Properties of a team folder.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.TeamFolderRenameErrorExceptionDbxException
-
teamFolderRestore
public TeamFolderMetadata teamFolderRestore(String teamFolderId) throws TeamFolderRestoreErrorException, DbxException Sets an inactive team folder's status to active. Permission: Team member file access.- Parameters:
teamFolderId- The ID of the team folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.- Returns:
- Properties of a team folder.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.TeamFolderRestoreErrorExceptionDbxException
-
teamFolderUpdateSyncSettings
public TeamFolderMetadata teamFolderUpdateSyncSettings(String teamFolderId) throws TeamFolderUpdateSyncSettingsErrorException, DbxException Updates the sync settings on a team folder or its contents. Use of this endpoint requires that the team has team selective sync enabled.- Parameters:
teamFolderId- The ID of the team folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.- Returns:
- Properties of a team folder.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.TeamFolderUpdateSyncSettingsErrorExceptionDbxException
-
teamFolderUpdateSyncSettingsBuilder
Updates the sync settings on a team folder or its contents. Use of this endpoint requires that the team has team selective sync enabled.- Parameters:
teamFolderId- The ID of the team folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.- Returns:
- Request builder for configuring request parameters and completing the request.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
tokenGetAuthenticatedAdmin
public TokenGetAuthenticatedAdminResult tokenGetAuthenticatedAdmin() throws TokenGetAuthenticatedAdminErrorException, DbxExceptionReturns the member profile of the admin who generated the team access token used to make the call.- Returns:
- Results for
tokenGetAuthenticatedAdmin(). - Throws:
TokenGetAuthenticatedAdminErrorExceptionDbxException
-