Creates a new comment on the task with the specified id.

Creates a new comment on the task with the specified id. A user can only create a comment for him/herself, except for admins and api users. <Check title="Required Permissions" icon="key">To create a comment the user must have at least `read` permissions on the specified task.</Check>

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

taskIdstringRequiredformat: "uuid"
The id of the task to create the comment for.

Request

The model to create the comment.
messagestringRequired1-65000 characters
The message of the comment.
userIdstring or nullOptionalformat: "uuid"
The id of the user who created the comment. Optional. If not set, defaults to the current user.
previewslist of strings or nullOptional
The preview URLs to show a preview for.
isHiddenForConnectUsersboolean or nullOptional

(optional) Whether the comment is hidden for connect users. Providing a null value will not change the current state. By default, comments are not hidden for connect users.

isResolvedboolean or nullOptional
Whether the comment has been resolved. Only available for comments on documents.
inReplyToCommentIdstring or nullOptionalformat: "uuid"
The parent comment this comment is a reply to.

Response

OK
idstringOptionalformat: "uuid"
The id of the comment.
entityIdstringOptionalformat: "uuid"
The id of the entity of the comment. Required.
entityTypestring or nullOptional
The type of the entity of the comment. Can be "projects", "tasks". Required.
entityobjectOptional
projectobjectOptional
taskobjectOptional
documentobjectOptional
createdOnstringOptionalformat: "date-time"
The date this object was created.
createdBystringOptionalformat: "uuid"
The id of the user who created this object.
userobjectOptional
agentIdstring or nullOptionalformat: "uuid"
The agent that visibly authored this comment, when it was created by an agent run.
agentNameSnapshotstring or nullOptional
The agent name captured when the comment was created.
updatedOnstringOptionalformat: "date-time"
The date this object was last modified.
updatedBystringOptionalformat: "uuid"
The id of the user who last modified this object.
mentionsobjectOptional
A mention is the tag of a user on a specific comment, so the user is notified.
reactionslist of objects or nullOptional
The reactions on a comment.
formattedMessagestring or nullOptional
The 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 nullOptional
The formatted and proccessed version of the comment message. E.g. mentions are in a human readable format. The formatted comment message is not styled.
resourceVersionlongOptionalRead-only
The version of the entity, updated on every modification, to the ticks in UTC. Not identical to UpdatedOn.
messagestring or nullOptional
The message of the comment.
userIdstring or nullOptionalformat: "uuid"
The id of the user who created the comment. Optional. If not set, defaults to the current user.
previewslist of strings or nullOptional
The preview URLs to show a preview for.
isHiddenForConnectUsersbooleanOptional
True if the comment should be hidden to connect users.
isResolvedboolean or nullOptional
Whether the comment has been resolved. Only available for comments on documents.
inReplyToCommentIdstring or nullOptionalformat: "uuid"
The parent comment this comment is a reply to.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error