List shares
Retrieves file shares, ordered from newest to oldest. Send either revisionId or workspaceId. Each result represents either a confirmed share with a user or a pending share with an email address not yet associated with a CAD ROOMS account.
revisionId: Returns shares of the file version associated with the revision. Collaborators and higher can see all shares. Users with whom the file is shared can see their own share.workspaceId: Returns shares within a workspace that you have permission to view. UsememberIdto list files shared with a specific guest or pending invite, andprojectIdto list shares within a specific project.
Send include=totalCount to retrieve the total number of matching shares. For example, send workspaceId, memberId, status=confirmed, limit=1 and include=totalCount to retrieve the number of files shared with a specific user.
Required permission: Depends on the filter.
- For
revisionId: Viewer or higher in the project, or a share of the file. - For
workspaceId: Any workspace role. - For the files of a guest: Workspace owner or admin, Collaborator or higher in the project of the file, or the guest.
- For the files of a pending invite: Viewer or higher in the workspace, or the user who sent the invite.
Authentication
Query parameters
Returns the shares of the file version behind this revision. Send either this or workspaceId.
Returns the shares in this workspace. Send either this or revisionId.
With workspaceId, returns only the shares with this person: the userId of a guest or member, or the inviteId of a pending invite.
With workspaceId, returns only the shares of files in this project.
Adds data to the response. Separate several values with commas.
totalCount: AddstotalCount, the number of records that match the request, next tonextCursor.
Cursor for retrieving the next page. Use the nextCursor value from the previous response. Omit for the first page.
Response headers
Request-Id. Unique identifier for the request. Every response, success or error, returns it. Error bodies carry the same value in requestId. Include it when contacting CAD ROOMS support.
Response
Cursor for retrieving the next page. Returns null when there are no more results.
Number of records that match the request, across all pages. Returned only when the list accepts include=totalCount and you send it.