A conversation is a fully resolved comment tree. It includes all comments for the given resource and all the nested comments/replies to those comments.
Path parameters
resourceType string, one of RUN, EVENTrequired
The type of resource that the comments are associated with
resourceRid string (RID) required
The RID of resource that the comments are associated with
Response
resourceRid string (RID)
RID for the resource that the conversation is associated with.
Comments service#
Comments service manages conversations about resources.
OpenAPI file:
CommentsService.jsonEndpoints#
Get conversation#
GET
/comments/v1/conversations/{resourceType}/{resourceRid}A conversation is a fully resolved comment tree. It includes all comments for the given resource and all the nested comments/replies to those comments.
Path parameters
resourceTypestring, one ofRUN,EVENTrequiredThe type of resource that the comments are associated with
resourceRidstring (RID) requiredThe RID of resource that the comments are associated with
Response
resourceRidstring (RID)RID for the resource that the conversation is associated with.
resourceTypeResourceTypeThe type of the resource that the conversation is associated with.
Values of
ResourceTypeRUN
EVENT
commentsarray ofConversationNodeThe comments on the conversation ordered by creation time. Empty if the comment has no replies.
Fields of
ConversationNodecommentCommentThe comment
Fields of
Commentridstring (RID)Unique resource identifier for the comment
parentCommentParentThe parent of the comment. It can be a resource or another comment.
Set
typeto"resource".resourceCommentParentResource
Fields of
CommentParentResourceresourceTypeResourceTypeThe type of resource that the comment is associated with
resourceRidstring (RID)The resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
Set
typeto"comment".commentCommentParentComment
Fields of
CommentParentCommentcommentRidstring (RID)The resource identifier for the comment that the comment is replying to
authorRidstring (RID)The user who authored the comment
createdAtstring (date-time)The time the comment was created
editedAtstring (date-time)The time the comment was edited. Empty if the comment has not been edited.
deletedAtstring (date-time)The time the comment was deleted. Empty if the comment has not been deleted.
contentstringThe markdown content of the comment.
pinnedBystring (RID)The user who pinned the comment. Empty if the comment is not pinned.
pinnedAtstring (date-time)The time the comment was pinned. Empty if the comment is not pinned.
reactionsarray ofReactionThe reactions on the comment
Fields of
Reactionridstring (RID)Unique resource identifier for the reaction
userRidstring (RID)The user who authored the reaction
createdAtstring (date-time)The time the reaction was created
typeReactionTypeThe type of reaction
Values of
ReactionTypeLIKE
DISLIKE
HEART
HOORAY
ROCKET
EYES
attachmentsarray of string (RID)The comment’s attachments
repliesarray ofConversationNodeThe comments on (aka replies to) the comment ordered by creation time. Empty if the comment has no replies.
Request
Response:
200Get conversation count#
GET
/comments/v1/conversations/{resourceType}/{resourceRid}/countReturns the number of comments in a conversation.
Path parameters
resourceTypestring, one ofRUN,EVENTrequiredThe type of resource that the comments are associated with
resourceRidstring (RID) requiredThe RID of resource that the comments are associated with
Query parameters
includeDeletedbooleanWhether to include deleted comments in the count
Response
The body is an integer.
Request
Response:
2001Get comment#
GET
/comments/v1/comments/{commentRid}Get a comment identified by its RID
Path parameters
commentRidstring (RID) requiredThe RID of comment to fetch
Response
ridstring (RID)Unique resource identifier for the comment
parentCommentParentThe parent of the comment. It can be a resource or another comment.
Set
typeto"resource".resourceCommentParentResource
Fields of
CommentParentResourceresourceTypeResourceTypeThe type of resource that the comment is associated with
Values of
ResourceTypeRUN
EVENT
resourceRidstring (RID)The resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
Set
typeto"comment".commentCommentParentComment
Fields of
CommentParentCommentcommentRidstring (RID)The resource identifier for the comment that the comment is replying to
authorRidstring (RID)The user who authored the comment
createdAtstring (date-time)The time the comment was created
editedAtstring (date-time)The time the comment was edited. Empty if the comment has not been edited.
deletedAtstring (date-time)The time the comment was deleted. Empty if the comment has not been deleted.
contentstringThe markdown content of the comment.
pinnedBystring (RID)The user who pinned the comment. Empty if the comment is not pinned.
pinnedAtstring (date-time)The time the comment was pinned. Empty if the comment is not pinned.
reactionsarray ofReactionThe reactions on the comment
Fields of
Reactionridstring (RID)Unique resource identifier for the reaction
userRidstring (RID)The user who authored the reaction
createdAtstring (date-time)The time the reaction was created
typeReactionTypeThe type of reaction
Values of
ReactionTypeLIKE
DISLIKE
HEART
HOORAY
ROCKET
EYES
attachmentsarray of string (RID)The comment’s attachments
Request
Response:
200Edit comment#
PUT
/comments/v1/comments/{commentRid}Edit an existing comment
Path parameters
commentRidstring (RID) requiredThe RID of comment to edit
Body
contentstring requiredThe content of the comment. Markdown supported.
attachmentsarray of string (RID)Attachments to the comment.
Response
ridstring (RID)Unique resource identifier for the comment
parentCommentParentThe parent of the comment. It can be a resource or another comment.
Set
typeto"resource".resourceCommentParentResource
Fields of
CommentParentResourceresourceTypeResourceTypeThe type of resource that the comment is associated with
Values of
ResourceTypeRUN
EVENT
resourceRidstring (RID)The resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
Set
typeto"comment".commentCommentParentComment
Fields of
CommentParentCommentcommentRidstring (RID)The resource identifier for the comment that the comment is replying to
authorRidstring (RID)The user who authored the comment
createdAtstring (date-time)The time the comment was created
editedAtstring (date-time)The time the comment was edited. Empty if the comment has not been edited.
deletedAtstring (date-time)The time the comment was deleted. Empty if the comment has not been deleted.
contentstringThe markdown content of the comment.
pinnedBystring (RID)The user who pinned the comment. Empty if the comment is not pinned.
pinnedAtstring (date-time)The time the comment was pinned. Empty if the comment is not pinned.
reactionsarray ofReactionThe reactions on the comment
Fields of
Reactionridstring (RID)Unique resource identifier for the reaction
userRidstring (RID)The user who authored the reaction
createdAtstring (date-time)The time the reaction was created
typeReactionTypeThe type of reaction
Values of
ReactionTypeLIKE
DISLIKE
HEART
HOORAY
ROCKET
EYES
attachmentsarray of string (RID)The comment’s attachments
Request
Response:
200Delete comment#
DELETE
/comments/v1/comments/{commentRid}Delete an existing comment
Path parameters
commentRidstring (RID) requiredThe RID of comment to delete
Response
ridstring (RID)Unique resource identifier for the comment
parentCommentParentThe parent of the comment. It can be a resource or another comment.
Set
typeto"resource".resourceCommentParentResource
Fields of
CommentParentResourceresourceTypeResourceTypeThe type of resource that the comment is associated with
Values of
ResourceTypeRUN
EVENT
resourceRidstring (RID)The resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
Set
typeto"comment".commentCommentParentComment
Fields of
CommentParentCommentcommentRidstring (RID)The resource identifier for the comment that the comment is replying to
authorRidstring (RID)The user who authored the comment
createdAtstring (date-time)The time the comment was created
editedAtstring (date-time)The time the comment was edited. Empty if the comment has not been edited.
deletedAtstring (date-time)The time the comment was deleted. Empty if the comment has not been deleted.
contentstringThe markdown content of the comment.
pinnedBystring (RID)The user who pinned the comment. Empty if the comment is not pinned.
pinnedAtstring (date-time)The time the comment was pinned. Empty if the comment is not pinned.
reactionsarray ofReactionThe reactions on the comment
Fields of
Reactionridstring (RID)Unique resource identifier for the reaction
userRidstring (RID)The user who authored the reaction
createdAtstring (date-time)The time the reaction was created
typeReactionTypeThe type of reaction
Values of
ReactionTypeLIKE
DISLIKE
HEART
HOORAY
ROCKET
EYES
attachmentsarray of string (RID)The comment’s attachments
Request
Response:
200Create comment#
POST
/comments/v1/commentsCreate a comment on a resource
Body
parentCommentParentrequired
Set
typeto"resource".resourceCommentParentResource
Fields of
CommentParentResourceresourceTypeResourceTyperequiredThe type of resource that the comment is associated with
Values of
ResourceTypeRUN
EVENT
resourceRidstring (RID) requiredThe resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
Set
typeto"comment".commentCommentParentComment
Fields of
CommentParentCommentcommentRidstring (RID) requiredThe resource identifier for the comment that the comment is replying to
contentstring requiredThe content of the comment. Markdown supported.
attachmentsarray of string (RID)Attachments to the comment.
Response
ridstring (RID)Unique resource identifier for the comment
parentCommentParentThe parent of the comment. It can be a resource or another comment.
Set
typeto"resource".resourceCommentParentResource
Fields of
CommentParentResourceresourceTypeResourceTypeThe type of resource that the comment is associated with
Values of
ResourceTypeRUN
EVENT
resourceRidstring (RID)The resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
Set
typeto"comment".commentCommentParentComment
Fields of
CommentParentCommentcommentRidstring (RID)The resource identifier for the comment that the comment is replying to
authorRidstring (RID)The user who authored the comment
createdAtstring (date-time)The time the comment was created
editedAtstring (date-time)The time the comment was edited. Empty if the comment has not been edited.
deletedAtstring (date-time)The time the comment was deleted. Empty if the comment has not been deleted.
contentstringThe markdown content of the comment.
pinnedBystring (RID)The user who pinned the comment. Empty if the comment is not pinned.
pinnedAtstring (date-time)The time the comment was pinned. Empty if the comment is not pinned.
reactionsarray ofReactionThe reactions on the comment
Fields of
Reactionridstring (RID)Unique resource identifier for the reaction
userRidstring (RID)The user who authored the reaction
createdAtstring (date-time)The time the reaction was created
typeReactionTypeThe type of reaction
Values of
ReactionTypeLIKE
DISLIKE
HEART
HOORAY
ROCKET
EYES
attachmentsarray of string (RID)The comment’s attachments
Request
Response:
200Pin comment#
PUT
/comments/v1/comments/{commentRid}/pinPin a comment to the top of the conversation
Path parameters
commentRidstring (RID) requiredThe RID of comment to pin
Response
ridstring (RID)Unique resource identifier for the comment
parentCommentParentThe parent of the comment. It can be a resource or another comment.
Set
typeto"resource".resourceCommentParentResource
Fields of
CommentParentResourceresourceTypeResourceTypeThe type of resource that the comment is associated with
Values of
ResourceTypeRUN
EVENT
resourceRidstring (RID)The resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
Set
typeto"comment".commentCommentParentComment
Fields of
CommentParentCommentcommentRidstring (RID)The resource identifier for the comment that the comment is replying to
authorRidstring (RID)The user who authored the comment
createdAtstring (date-time)The time the comment was created
editedAtstring (date-time)The time the comment was edited. Empty if the comment has not been edited.
deletedAtstring (date-time)The time the comment was deleted. Empty if the comment has not been deleted.
contentstringThe markdown content of the comment.
pinnedBystring (RID)The user who pinned the comment. Empty if the comment is not pinned.
pinnedAtstring (date-time)The time the comment was pinned. Empty if the comment is not pinned.
reactionsarray ofReactionThe reactions on the comment
Fields of
Reactionridstring (RID)Unique resource identifier for the reaction
userRidstring (RID)The user who authored the reaction
createdAtstring (date-time)The time the reaction was created
typeReactionTypeThe type of reaction
Values of
ReactionTypeLIKE
DISLIKE
HEART
HOORAY
ROCKET
EYES
attachmentsarray of string (RID)The comment’s attachments
Request
Response:
200Unpin comment#
DELETE
/comments/v1/comments/{commentRid}/pinUnpin a comment from the top of the conversation
Path parameters
commentRidstring (RID) requiredThe RID of comment to unpin
Response
ridstring (RID)Unique resource identifier for the comment
parentCommentParentThe parent of the comment. It can be a resource or another comment.
Set
typeto"resource".resourceCommentParentResource
Fields of
CommentParentResourceresourceTypeResourceTypeThe type of resource that the comment is associated with
Values of
ResourceTypeRUN
EVENT
resourceRidstring (RID)The resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
Set
typeto"comment".commentCommentParentComment
Fields of
CommentParentCommentcommentRidstring (RID)The resource identifier for the comment that the comment is replying to
authorRidstring (RID)The user who authored the comment
createdAtstring (date-time)The time the comment was created
editedAtstring (date-time)The time the comment was edited. Empty if the comment has not been edited.
deletedAtstring (date-time)The time the comment was deleted. Empty if the comment has not been deleted.
contentstringThe markdown content of the comment.
pinnedBystring (RID)The user who pinned the comment. Empty if the comment is not pinned.
pinnedAtstring (date-time)The time the comment was pinned. Empty if the comment is not pinned.
reactionsarray ofReactionThe reactions on the comment
Fields of
Reactionridstring (RID)Unique resource identifier for the reaction
userRidstring (RID)The user who authored the reaction
createdAtstring (date-time)The time the reaction was created
typeReactionTypeThe type of reaction
Values of
ReactionTypeLIKE
DISLIKE
HEART
HOORAY
ROCKET
EYES
attachmentsarray of string (RID)The comment’s attachments
Request
Response:
200Add reaction#
PUT
/comments/v1/comments/{commentRid}/reactions/{type}Create a reaction on a comment
Path parameters
commentRidstring (RID) requiredThe RID of comment to delete
typestring, one ofLIKE,DISLIKE,HEART,HOORAY,ROCKET,EYESrequiredThe type of reaction
Response
ridstring (RID)Unique resource identifier for the comment
parentCommentParentThe parent of the comment. It can be a resource or another comment.
Set
typeto"resource".resourceCommentParentResource
Fields of
CommentParentResourceresourceTypeResourceTypeThe type of resource that the comment is associated with
Values of
ResourceTypeRUN
EVENT
resourceRidstring (RID)The resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
Set
typeto"comment".commentCommentParentComment
Fields of
CommentParentCommentcommentRidstring (RID)The resource identifier for the comment that the comment is replying to
authorRidstring (RID)The user who authored the comment
createdAtstring (date-time)The time the comment was created
editedAtstring (date-time)The time the comment was edited. Empty if the comment has not been edited.
deletedAtstring (date-time)The time the comment was deleted. Empty if the comment has not been deleted.
contentstringThe markdown content of the comment.
pinnedBystring (RID)The user who pinned the comment. Empty if the comment is not pinned.
pinnedAtstring (date-time)The time the comment was pinned. Empty if the comment is not pinned.
reactionsarray ofReactionThe reactions on the comment
Fields of
Reactionridstring (RID)Unique resource identifier for the reaction
userRidstring (RID)The user who authored the reaction
createdAtstring (date-time)The time the reaction was created
typeReactionTypeThe type of reaction
Values of
ReactionTypeLIKE
DISLIKE
HEART
HOORAY
ROCKET
EYES
attachmentsarray of string (RID)The comment’s attachments
Request
Response:
200Remove reaction#
DELETE
/comments/v1/comments/{commentRid}/reactions/{type}Create a reaction on a comment
Path parameters
commentRidstring (RID) requiredThe RID of comment to delete
typestring, one ofLIKE,DISLIKE,HEART,HOORAY,ROCKET,EYESrequiredThe type of reaction
Response
ridstring (RID)Unique resource identifier for the comment
parentCommentParentThe parent of the comment. It can be a resource or another comment.
Set
typeto"resource".resourceCommentParentResource
Fields of
CommentParentResourceresourceTypeResourceTypeThe type of resource that the comment is associated with
Values of
ResourceTypeRUN
EVENT
resourceRidstring (RID)The resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
Set
typeto"comment".commentCommentParentComment
Fields of
CommentParentCommentcommentRidstring (RID)The resource identifier for the comment that the comment is replying to
authorRidstring (RID)The user who authored the comment
createdAtstring (date-time)The time the comment was created
editedAtstring (date-time)The time the comment was edited. Empty if the comment has not been edited.
deletedAtstring (date-time)The time the comment was deleted. Empty if the comment has not been deleted.
contentstringThe markdown content of the comment.
pinnedBystring (RID)The user who pinned the comment. Empty if the comment is not pinned.
pinnedAtstring (date-time)The time the comment was pinned. Empty if the comment is not pinned.
reactionsarray ofReactionThe reactions on the comment
Fields of
Reactionridstring (RID)Unique resource identifier for the reaction
userRidstring (RID)The user who authored the reaction
createdAtstring (date-time)The time the reaction was created
typeReactionTypeThe type of reaction
Values of
ReactionTypeLIKE
DISLIKE
HEART
HOORAY
ROCKET
EYES
attachmentsarray of string (RID)The comment’s attachments
Request
Response:
200Errors#
Errors shows how these errors are sent.
Each error’s
errorNameisComments:followed by its name below.Status
Name
Notes
400
ContentTooLong400
EmptyCommentContent400
InvalidAttachment400
MaxNestingDepthExceeded403
Unauthorized404
CommentNotFoundTypes#
Comment#
ridstring (RID) requiredUnique resource identifier for the comment
parentCommentParentrequiredThe parent of the comment. It can be a resource or another comment.
authorRidstring (RID) requiredThe user who authored the comment
createdAtstring (date-time) requiredThe time the comment was created
editedAtstring (date-time)The time the comment was edited. Empty if the comment has not been edited.
deletedAtstring (date-time)The time the comment was deleted. Empty if the comment has not been deleted.
contentstring requiredThe markdown content of the comment.
pinnedBystring (RID)The user who pinned the comment. Empty if the comment is not pinned.
pinnedAtstring (date-time)The time the comment was pinned. Empty if the comment is not pinned.
reactionsarray ofReactionThe reactions on the comment
attachmentsarray of string (RID)The comment’s attachments
CommentParent#
The parent of a comment. It can be a resource or another comment in the case of a reply.
Set
typeto the name of one of the other fields, and set only that field.resourceCommentParentResource
commentCommentParentComment
CommentParentComment#
commentRidstring (RID) requiredThe resource identifier for the comment that the comment is replying to
CommentParentResource#
resourceTypeResourceTyperequiredThe type of resource that the comment is associated with
resourceRidstring (RID) requiredThe resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
ConversationNode#
commentCommentrequiredThe comment
repliesarray ofConversationNodeThe comments on (aka replies to) the comment ordered by creation time. Empty if the comment has no replies.
Reaction#
ridstring (RID) requiredUnique resource identifier for the reaction
userRidstring (RID) requiredThe user who authored the reaction
createdAtstring (date-time) requiredThe time the reaction was created
typeReactionTyperequiredThe type of reaction
ReactionType#
LIKE
DISLIKE
HEART
HOORAY
ROCKET
EYES
ResourceType#
RUN
EVENT
Page design based on Scalar, MIT License.