Create an annotation
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
revisionId
Unique identifier of the revision.
Request
This endpoint expects an object.
content
Text of the annotation, in Markdown.
mentions
IDs of the users mentioned in the text.
nodeId
ID of the part the annotation is pinned to.
nodeName
Name of the part the annotation is pinned to.
position
A point in 3D.
camera
The camera of the 3D view saved with an annotation.
scene
Snapshot of the 3D view, such as part visibility, markup and section view. CAD ROOMS stores it as sent.
Response headers
Request-Id
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.
id
Unique identifier for the annotation.
projectId
ID of the project.
path
Full path of the annotated file.
revisionId
Latest revision of the annotated file version when the annotation was created.
number
Annotation number, unique within a file version. Numbering starts at 1 on each file version.
url
Link that opens the annotation in the CAD ROOMS app. Use it to share the annotation, as Copy link does in the app.
content
Text of the annotation, in Markdown.
mentions
Users mentioned in the text.
nodeId
ID of the part the annotation is pinned to, or null if none.
nodeName
Name of the part the annotation is pinned to, or null if none.
position
Position of the annotation in 3D, or null if none.
resolvedAt
Timestamp when the annotation was resolved, or null if it is unresolved.
previews
Thumbnails of the annotation. Use Download an annotation thumbnail to get the image.
createdAt
Timestamp when the annotation was created.
updatedAt
Timestamp when the annotation was last updated.
replyCount
Number of replies.
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error