Sets the resolved status of a comment. Users need write permissions on the document to resolve/unresolve comments. Currently, the IsResolved property is only available for document comments.
Authentication
AuthorizationBearerSend your token in the Authorization: Bearer <token> header. See Authentication for API keys and OAuth.
Path parameters
documentIdstringRequiredThe id of the document.
commentIdstringRequiredThe id of the comment.
Request body Required
The resolved status.
application/json
isResolvedbooleanRequiredWhether the comment should be marked as resolved.
Responses
200 OK
application/json
idstringOptionalThe id of the comment.
entityIdstringOptionalThe id of the entity of the comment. Required.
entityTypestring or nullOptionalThe type of the entity of the comment. Can be "projects", "tasks". Required.
entityobjectOptionalShow 2 properties
idstringOptionalThe id of the entity.
namestring or nullOptionalThe name of the entity.
projectobjectOptionalShow 2 properties
idstringOptionalThe id of the entity.
namestring or nullOptionalThe name of the entity.
taskobjectOptionalShow 2 properties
idstringOptionalThe id of the entity.
namestring or nullOptionalThe name of the entity.
documentobjectOptionalShow 2 properties
idstringOptionalThe id of the entity.
namestring or nullOptionalThe name of the entity.
createdOnstringOptionalThe date this object was created.
createdBystringOptionalThe id of the user who created this object.
userobjectOptionalShow 5 properties
idstringOptionalThe identifier of the nested model.
firstNamestring or nullOptionalThe first name of the user.
lastNamestring or nullOptionalThe last name of the user.
hasImageboolean or nullOptionalWhether this user has a profile image.
isExternalbooleanOptionalTrue if the model is coming from an external workspace (awork Connect). False otherwise.
agentIdstring or nullOptionalThe agent that visibly authored this comment, when it was created by an agent run.
agentNameSnapshotstring or nullOptionalThe agent name captured when the comment was created.
updatedOnstringOptionalThe date this object was last modified.
updatedBystringOptionalThe id of the user who last modified this object.
mentionsobjectOptionalA mention is the tag of a user on a specific comment, so the user is notified.
Show 4 properties
isMentioningPersonalAgentbooleanOptionalGets or sets whether the comment mentions the awork Agent.
usersarray of object or nullOptionalAll users which have been mentioned in the comment.
Show 5 properties
idstringOptionalThe identifier of the nested model.
firstNamestring or nullOptionalThe first name of the user.
lastNamestring or nullOptionalThe last name of the user.
hasImageboolean or nullOptionalWhether this user has a profile image.
isExternalbooleanOptionalTrue if the model is coming from an external workspace (awork Connect). False otherwise.
agentIdsarray of string or nullOptionalStable ids of agents mentioned directly in the comment.
everyUserHadPermissionsbooleanOptionalIf every user was able to receive the mention notification. If not, one of the users had no permissions to.
reactionsarray of object or nullOptionalThe reactions on a comment.
Show 2 properties
userIdstringOptionalAll users ids that reacted with the emoji.
emojistring or nullOptionalThe emoji used as a reaction.
formattedMessagestring or nullOptionalThe formatted and proccessed version of the comment message. E.g. mentions are in a human readable format. The formatted comment message is styled with html.
plainFormattedMessagestring or nullOptionalThe formatted and proccessed version of the comment message. E.g. mentions are in a human readable format. The formatted comment message is not styled.
resourceVersionintegerOptionalThe version of the entity, updated on every modification, to the ticks in UTC. Not identical to UpdatedOn.
messagestring or nullOptionalThe message of the comment.
userIdstring or nullOptionalThe id of the user who created the comment. Optional. If not set, defaults to the current user.
previewsarray of string or nullOptionalThe preview URLs to show a preview for.
isHiddenForConnectUsersbooleanOptionalTrue if the comment should be hidden to connect users.
isResolvedboolean or nullOptionalWhether the comment has been resolved. Only available for comments on documents.
inReplyToCommentIdstring or nullOptionalThe parent comment this comment is a reply to.
401 Unauthorized
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.
404 Not Found
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.