Skip to navigation

Update an annotation

Preview

Updates an annotation. Provide only the fields you want to change.

CAD ROOMS notifies newly mentioned users. The request fails if any newly mentioned user does not have access to the file.

To resolve or unresolve an annotation, use Resolve an annotation.

Required permission: Author of the annotation.

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

annotationIdstringRequired
Unique identifier of the annotation.

Request

This endpoint expects an object.
contentstringOptional
Text of the annotation, in Markdown.
mentionslist of stringsOptional
IDs of the users mentioned in the text.
nodeIdlongOptional
ID of the part shown in the saved view.
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 updated 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