Remove shares
Removes file shares. Send userIds for confirmed shares and emails for pending shares, along with either revisionId or workspaceId.
revisionId: Removes shares of the file version associated with the revision.workspaceId: Removes all shares for the specified users and email addresses within the workspace. A project Collaborator or Admin who is not a workspace owner or admin can remove only shares of files within that project.
If a guest’s last share in the workspace is removed, CAD ROOMS removes the guest from the workspace. CAD ROOMS cancels a pending invitation with the Guest role when no files remain shared with the recipient.
Required permission: Collaborator or higher in the project of the file, or workspace owner or admin. For a pending share, workspace owner or admin, or the user who sent the invitation.
Authentication
AuthorizationBearer
An API key associated with your user account and workspace. API requests inherit your existing workspace permissions.
OR
AuthorizationBearer
The session token of a user signed in to the CAD ROOMS app. Every endpoint accepts it in place of an API key.
Request
Send either revisionId or workspaceId, and at least one user ID or email address.
revisionId
The revision whose file version to stop sharing.
workspaceId
The workspace in which to remove every share of these people.
userIds
Users to stop sharing with.
emails
Email addresses of the pending shares to remove.
Response
The shares were removed.
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error