Skip to navigation

Complete an attachment

Preview

Confirms that the attachment content has been uploaded. CAD ROOMS retrieves its size and checksum from storage. Set convertFile to initiate CAD processing, allowing the attachment to be loaded in the 3D view. The request fails if the attachment is already complete.

You can complete a thumbnail only if you created it.

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

attachmentIdstringRequired
Unique identifier of the attachment.

Request

This endpoint expects an object.
contentTypestringRequired
Content type of the uploaded file.
convertFilebooleanOptionalDefaults to false
Starts CAD processing for the attachment.

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 completed attachment.
idstring
Unique identifier of the attachment.
projectIdstring
ID of the project.
pathstring
Name of the attachment file.
contentTypestring or null

Content type of the file, or null if unknown.

sizeBytesinteger or null

Size of the file in bytes, or null until the attachment is complete.

processingStatusenum

CAD processing status. It stays pending unless CAD processing was started.

Allowed values:
processingErrorstring or null

Why CAD processing failed, or null if it did not fail.

createdAtdatetime
Time at which the attachment was created.
downloadUrlstringOptional
Temporary, signed URL of the content. Returned when you get an attachment.

Errors

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