Skip to navigation

Share a file

Preview

Shares the file version associated with a revision with users or email addresses. CAD ROOMS adds each user who is not already a workspace member as a guest and notifies the user.

A pending share is created for each email address not associated with a CAD ROOMS account. CAD ROOMS sends an invitation email unless the address already has a pending invitation to the workspace. The share is confirmed when the recipient signs up.

Any user or email address for which sharing fails is listed in errors. The remaining shares are created successfully.

Required permission: Collaborator or higher in the project.

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

This endpoint expects an object.
revisionIdstringRequired
The revision whose file version to share.
userIdslist of stringsOptional
IDs of the users to share the file with.
emailslist of stringsOptional
Email addresses to share the file with.

Response headers

Request-IdstringOptional

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

Returns the new shares in data. A user or email address that could not be shared with is listed in errors.

datalist of objects
The new shares.
errorslist of objectsOptional
The users and email addresses that could not be shared with.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error