Skip to navigation

Create an annotation

Preview

Creates an annotation on the underlying file version of a revision. CAD ROOMS assigns the next annotation number and notifies mentioned users.

Sends the annotation.created event.

Required permission: Viewer or higher in the project, or a share of the file.

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

revisionIdstringRequired
Unique identifier of the revision.

Request

This endpoint expects an object.
contentstringRequired
Text of the annotation, in Markdown.
mentionslist of stringsOptional
IDs of the users mentioned in the text.
nodeIdlongOptional
ID of the part the annotation is pinned to.
nodeNamestringOptional
Name of the part the annotation is pinned to.
positionobjectOptional
A point in 3D.
cameraobjectOptional
The camera of the 3D view saved with an annotation.
sceneobjectOptional
Snapshot of the 3D view, such as part visibility, markup and section view. CAD ROOMS stores it as sent.

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 annotation.
idstring
Unique identifier for the annotation.
projectIdstring
ID of the project.
pathstring
Full path of the annotated file.
revisionIdstring
Latest revision of the annotated file version when the annotation was created.
numberinteger
Annotation number, unique within a file version. Numbering starts at 1 on each file version.
urlstringformat: "uri"
Link that opens the annotation in the CAD ROOMS app. Use it to share the annotation, as Copy link does in the app.
contentstring
Text of the annotation, in Markdown.
authorobject
Represents a CAD ROOMS user.
mentionslist of objects
Users mentioned in the text.
nodeIdlong or null

ID of the part the annotation is pinned to, or null if none.

nodeNamestring or null

Name of the part the annotation is pinned to, or null if none.

positionobject or null

Position of the annotation in 3D, or null if none.

resolvedAtdatetime or null

Timestamp when the annotation was resolved, or null if it is unresolved.

previewslist of objects
Thumbnails of the annotation. Use Download an annotation thumbnail to get the image.
createdAtdatetime
Timestamp when the annotation was created.
updatedAtdatetime
Timestamp when the annotation was last updated.
replyCountinteger
Number of replies.

Errors

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