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 RESOURCE_TYPE_UNSPECIFIED, RUN, EVENTrequired
The type of resource that the comments are associated with
resourceRid string required
The RID of resource that the comments are associated with
Comments service#
Comments service manages conversations about resources.
OpenAPI file:
nominal.comments.v1.jsonEndpoints#
Create comment#
POST
/comments/v2/commentsCreate a comment on a resource
Body
parentCommentParent
Fields of
CommentParentresource,commentrequired
resourceCommentParentResource
Fields of
CommentParentResourceresourceTypeResourceTypeThe type of resource that the comment is associated with
Values of
ResourceTypeRESOURCE_TYPE_UNSPECIFIED
RUN
EVENT
resourceRidstringThe resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
commentCommentParentComment
Fields of
CommentParentCommentcommentRidstringThe resource identifier for the comment that the comment is replying to
contentstringThe content of the comment. Markdown supported.
attachmentsarray of stringAttachments to the comment.
Response
commentComment
Fields of
CommentridstringUnique resource identifier for the comment
parentCommentParentThe parent of the comment. It can be a resource or another comment.
Fields of
CommentParentresource,comment
resourceCommentParentResource
Fields of
CommentParentResourceresourceTypeResourceTypeThe type of resource that the comment is associated with
Values of
ResourceTypeRESOURCE_TYPE_UNSPECIFIED
RUN
EVENT
resourceRidstringThe resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
commentCommentParentComment
Fields of
CommentParentCommentcommentRidstringThe resource identifier for the comment that the comment is replying to
authorRidstringThe 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.
pinnedBystringThe 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
ReactionridstringUnique resource identifier for the reaction
userRidstringThe user who authored the reaction
createdAtstring (date-time)The time the reaction was created
typeReactionTypeThe type of reaction
Values of
ReactionTypeREACTION_TYPE_UNSPECIFIED
LIKE
DISLIKE
HEART
HOORAY
ROCKET
EYES
attachmentsarray of stringThe comment’s attachments
Request
Response:
200Get comment#
GET
/comments/v2/comments/{commentRid}Get a comment identified by its RID
Path parameters
commentRidstring requiredThe RID of comment to fetch
Response
commentComment
Fields of
CommentridstringUnique resource identifier for the comment
parentCommentParentThe parent of the comment. It can be a resource or another comment.
Fields of
CommentParentresource,comment
resourceCommentParentResource
Fields of
CommentParentResourceresourceTypeResourceTypeThe type of resource that the comment is associated with
Values of
ResourceTypeRESOURCE_TYPE_UNSPECIFIED
RUN
EVENT
resourceRidstringThe resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
commentCommentParentComment
Fields of
CommentParentCommentcommentRidstringThe resource identifier for the comment that the comment is replying to
authorRidstringThe 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.
pinnedBystringThe 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
ReactionridstringUnique resource identifier for the reaction
userRidstringThe user who authored the reaction
createdAtstring (date-time)The time the reaction was created
typeReactionTypeThe type of reaction
Values of
ReactionTypeREACTION_TYPE_UNSPECIFIED
LIKE
DISLIKE
HEART
HOORAY
ROCKET
EYES
attachmentsarray of stringThe comment’s attachments
Request
Response:
200Delete comment#
DELETE
/comments/v2/comments/{commentRid}Delete an existing comment
Path parameters
commentRidstring requiredThe RID of comment to delete
Response
commentComment
Fields of
CommentridstringUnique resource identifier for the comment
parentCommentParentThe parent of the comment. It can be a resource or another comment.
Fields of
CommentParentresource,comment
resourceCommentParentResource
Fields of
CommentParentResourceresourceTypeResourceTypeThe type of resource that the comment is associated with
Values of
ResourceTypeRESOURCE_TYPE_UNSPECIFIED
RUN
EVENT
resourceRidstringThe resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
commentCommentParentComment
Fields of
CommentParentCommentcommentRidstringThe resource identifier for the comment that the comment is replying to
authorRidstringThe 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.
pinnedBystringThe 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
ReactionridstringUnique resource identifier for the reaction
userRidstringThe user who authored the reaction
createdAtstring (date-time)The time the reaction was created
typeReactionTypeThe type of reaction
Values of
ReactionTypeREACTION_TYPE_UNSPECIFIED
LIKE
DISLIKE
HEART
HOORAY
ROCKET
EYES
attachmentsarray of stringThe comment’s attachments
Request
Response:
200Edit comment#
PUT
/comments/v2/comments/{commentRid}Edit an existing comment
Path parameters
commentRidstring requiredThe RID of comment to edit
Body
contentstringThe content of the comment. Markdown supported.
attachmentsarray of stringAttachments to the comment.
Response
commentComment
Fields of
CommentridstringUnique resource identifier for the comment
parentCommentParentThe parent of the comment. It can be a resource or another comment.
Fields of
CommentParentresource,comment
resourceCommentParentResource
Fields of
CommentParentResourceresourceTypeResourceTypeThe type of resource that the comment is associated with
Values of
ResourceTypeRESOURCE_TYPE_UNSPECIFIED
RUN
EVENT
resourceRidstringThe resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
commentCommentParentComment
Fields of
CommentParentCommentcommentRidstringThe resource identifier for the comment that the comment is replying to
authorRidstringThe 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.
pinnedBystringThe 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
ReactionridstringUnique resource identifier for the reaction
userRidstringThe user who authored the reaction
createdAtstring (date-time)The time the reaction was created
typeReactionTypeThe type of reaction
Values of
ReactionTypeREACTION_TYPE_UNSPECIFIED
LIKE
DISLIKE
HEART
HOORAY
ROCKET
EYES
attachmentsarray of stringThe comment’s attachments
Request
Response:
200Pin comment#
POST
/comments/v2/comments/{commentRid}/pinPin a comment to the top of the conversation
Path parameters
commentRidstring requiredThe RID of comment to pin
Response
commentComment
Fields of
CommentridstringUnique resource identifier for the comment
parentCommentParentThe parent of the comment. It can be a resource or another comment.
Fields of
CommentParentresource,comment
resourceCommentParentResource
Fields of
CommentParentResourceresourceTypeResourceTypeThe type of resource that the comment is associated with
Values of
ResourceTypeRESOURCE_TYPE_UNSPECIFIED
RUN
EVENT
resourceRidstringThe resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
commentCommentParentComment
Fields of
CommentParentCommentcommentRidstringThe resource identifier for the comment that the comment is replying to
authorRidstringThe 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.
pinnedBystringThe 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
ReactionridstringUnique resource identifier for the reaction
userRidstringThe user who authored the reaction
createdAtstring (date-time)The time the reaction was created
typeReactionTypeThe type of reaction
Values of
ReactionTypeREACTION_TYPE_UNSPECIFIED
LIKE
DISLIKE
HEART
HOORAY
ROCKET
EYES
attachmentsarray of stringThe comment’s attachments
Request
Response:
200Remove reaction#
DELETE
/comments/v2/comments/{commentRid}/reactions/{type}Create a reaction on a comment
Path parameters
commentRidstring requiredThe RID of comment to delete
typestring, one ofREACTION_TYPE_UNSPECIFIED,LIKE,DISLIKE,HEART,HOORAY,ROCKET,EYESrequiredThe type of reaction
Response
commentComment
Fields of
CommentridstringUnique resource identifier for the comment
parentCommentParentThe parent of the comment. It can be a resource or another comment.
Fields of
CommentParentresource,comment
resourceCommentParentResource
Fields of
CommentParentResourceresourceTypeResourceTypeThe type of resource that the comment is associated with
Values of
ResourceTypeRESOURCE_TYPE_UNSPECIFIED
RUN
EVENT
resourceRidstringThe resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
commentCommentParentComment
Fields of
CommentParentCommentcommentRidstringThe resource identifier for the comment that the comment is replying to
authorRidstringThe 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.
pinnedBystringThe 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
ReactionridstringUnique resource identifier for the reaction
userRidstringThe user who authored the reaction
createdAtstring (date-time)The time the reaction was created
typeReactionTypeThe type of reaction
Values of
ReactionTypeREACTION_TYPE_UNSPECIFIED
LIKE
DISLIKE
HEART
HOORAY
ROCKET
EYES
attachmentsarray of stringThe comment’s attachments
Request
Response:
200Add reaction#
POST
/comments/v2/comments/{commentRid}/reactions/{type}Create a reaction on a comment
Path parameters
commentRidstring requiredThe RID of comment to delete
typestring, one ofREACTION_TYPE_UNSPECIFIED,LIKE,DISLIKE,HEART,HOORAY,ROCKET,EYESrequiredThe type of reaction
Response
commentComment
Fields of
CommentridstringUnique resource identifier for the comment
parentCommentParentThe parent of the comment. It can be a resource or another comment.
Fields of
CommentParentresource,comment
resourceCommentParentResource
Fields of
CommentParentResourceresourceTypeResourceTypeThe type of resource that the comment is associated with
Values of
ResourceTypeRESOURCE_TYPE_UNSPECIFIED
RUN
EVENT
resourceRidstringThe resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
commentCommentParentComment
Fields of
CommentParentCommentcommentRidstringThe resource identifier for the comment that the comment is replying to
authorRidstringThe 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.
pinnedBystringThe 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
ReactionridstringUnique resource identifier for the reaction
userRidstringThe user who authored the reaction
createdAtstring (date-time)The time the reaction was created
typeReactionTypeThe type of reaction
Values of
ReactionTypeREACTION_TYPE_UNSPECIFIED
LIKE
DISLIKE
HEART
HOORAY
ROCKET
EYES
attachmentsarray of stringThe comment’s attachments
Request
Response:
200Unpin comment#
POST
/comments/v2/comments/{commentRid}/unpinUnpin a comment from the top of the conversation
Path parameters
commentRidstring requiredThe RID of comment to unpin
Response
commentComment
Fields of
CommentridstringUnique resource identifier for the comment
parentCommentParentThe parent of the comment. It can be a resource or another comment.
Fields of
CommentParentresource,comment
resourceCommentParentResource
Fields of
CommentParentResourceresourceTypeResourceTypeThe type of resource that the comment is associated with
Values of
ResourceTypeRESOURCE_TYPE_UNSPECIFIED
RUN
EVENT
resourceRidstringThe resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
commentCommentParentComment
Fields of
CommentParentCommentcommentRidstringThe resource identifier for the comment that the comment is replying to
authorRidstringThe 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.
pinnedBystringThe 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
ReactionridstringUnique resource identifier for the reaction
userRidstringThe user who authored the reaction
createdAtstring (date-time)The time the reaction was created
typeReactionTypeThe type of reaction
Values of
ReactionTypeREACTION_TYPE_UNSPECIFIED
LIKE
DISLIKE
HEART
HOORAY
ROCKET
EYES
attachmentsarray of stringThe comment’s attachments
Request
Response:
200Get conversation#
GET
/comments/v2/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 ofRESOURCE_TYPE_UNSPECIFIED,RUN,EVENTrequiredThe type of resource that the comments are associated with
resourceRidstring requiredThe RID of resource that the comments are associated with
Response
conversationConversation
Fields of
ConversationresourceRidstringRID for the resource that the conversation is associated with.
resourceTypeResourceTypeThe type of the resource that the conversation is associated with.
Values of
ResourceTypeRESOURCE_TYPE_UNSPECIFIED
RUN
EVENT
commentsarray ofConversationNodeThe comments on the conversation ordered by creation time. Empty if the comment has no replies.
Fields of
ConversationNodecommentCommentThe comment
Fields of
CommentridstringUnique resource identifier for the comment
parentCommentParentThe parent of the comment. It can be a resource or another comment.
Fields of
CommentParentresource,comment
resourceCommentParentResource
Fields of
CommentParentResourceresourceTypeResourceTypeThe type of resource that the comment is associated with
resourceRidstringThe resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
commentCommentParentComment
Fields of
CommentParentCommentcommentRidstringThe resource identifier for the comment that the comment is replying to
authorRidstringThe 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.
pinnedBystringThe 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
ReactionridstringUnique resource identifier for the reaction
userRidstringThe user who authored the reaction
createdAtstring (date-time)The time the reaction was created
typeReactionTypeThe type of reaction
Values of
ReactionTypeREACTION_TYPE_UNSPECIFIED
LIKE
DISLIKE
HEART
HOORAY
ROCKET
EYES
attachmentsarray of stringThe 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/v2/conversations/{resourceType}/{resourceRid}/countReturns the number of comments in a conversation.
Path parameters
resourceTypestring, one ofRESOURCE_TYPE_UNSPECIFIED,RUN,EVENTrequiredThe type of resource that the comments are associated with
resourceRidstring requiredThe RID of resource that the comments are associated with
Query parameters
includeDeletedbooleanWhether to include deleted comments in the count
Response
countinteger
Request
Response:
200Errors#
Errors shows how these errors are sent.
Each error’s
errorNameisNominalCommentsV1:followed by its name below.Status
Name
Notes
400
CommentsErrorContentTooLongContentTooLong
400
CommentsErrorEmptyCommentContentEmptyCommentContent
400
CommentsErrorInvalidArgumentInvalidArgument
400
CommentsErrorInvalidAttachmentInvalidAttachment
400
CommentsErrorMaxNestingDepthExceededMaxNestingDepthExceeded
403
CommentsErrorUnauthorizedUnauthorized
404
CommentsErrorCommentNotFoundCommentNotFound
Types#
Comment#
ridstringUnique resource identifier for the comment
parentCommentParentThe parent of the comment. It can be a resource or another comment.
authorRidstringThe 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.
pinnedBystringThe 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 stringThe comment’s attachments
CommentParent#
The parent of a comment. It can be a resource or another comment in the case of a reply.
Set exactly one of the fields below.
resource,commentrequired
resourceCommentParentResource
commentCommentParentComment
CommentParentComment#
commentRidstringThe resource identifier for the comment that the comment is replying to
CommentParentResource#
resourceTypeResourceTypeThe type of resource that the comment is associated with
resourceRidstringThe resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
Conversation#
resourceRidstringRID for the resource that the conversation is associated with.
resourceTypeResourceTypeThe type of the resource that the conversation is associated with.
commentsarray ofConversationNodeThe comments on the conversation ordered by creation time. Empty if the comment has no replies.
ConversationNode#
commentCommentThe comment
repliesarray ofConversationNodeThe comments on (aka replies to) the comment ordered by creation time. Empty if the comment has no replies.
Reaction#
ridstringUnique resource identifier for the reaction
userRidstringThe user who authored the reaction
createdAtstring (date-time)The time the reaction was created
typeReactionTypeThe type of reaction
ReactionType#
REACTION_TYPE_UNSPECIFIED
LIKE
DISLIKE
HEART
HOORAY
ROCKET
EYES
ResourceType#
RESOURCE_TYPE_UNSPECIFIED
RUN
EVENT
Page design based on Scalar, MIT License.