Skip to navigation

Create uploads

Preview

Prepares one or more files for upload and returns the locations to which their content should be uploaded. CAD ROOMS checks out each new file to you.

Folder imports

Send importId and each file’s sourcePath to add the files to an import.

CAD ROOMS checks out each new file to you with the purpose Import. The request fails if another user holds a check-out on any new file. If Unique Filenames is enabled in the workspace, the request also fails if another file in the workspace has the same name.

A file that already exists in the project and whose content is already stored in CAD ROOMS receives the status skipped and does not require an upload. A file with an existing pending or completed status in the import retains its status.

Any file that could not be prepared receives the status failed.

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.

Path parameters

projectIdstringRequired
Unique identifier of the project.

Request

This endpoint expects an object.
fileslist of objectsRequired
The files to upload.
expiresInintegerOptional60-86400Defaults to 3600
Number of seconds the upload URLs stay valid.
importIdstringOptional
The folder import these files belong to.

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 one upload per file. A file that could not be prepared is listed in errors, and the other files still succeed.

datalist of objects
The prepared uploads.
errorslist of objectsOptional
Files that could not be prepared.

Errors

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