> Portal Navigation:
>
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt
# Resource: Comments
# Type: Comment Object
# Link: https://dev.wix.com/docs/api-reference/crm/community/feedback-moderation/comments/comments/comment-object.md
## Description: A comment is a user-generated message in response to a specific resource. It allows site visitors
to share feedback or engage in discussions around different types of resources, including blog posts, forum threads,
or other site content. Comments are composed of text, images, videos, or other forms of media.
## Schema:
```json
Type: Comment Object | type: Comment
Description: A comment is a user-generated message in response to a specific resource. It allows site visitors
to share feedback or engage in discussions around different types of resources, including blog posts, forum threads,
or other site content. Comments are composed of text, images, videos, or other forms of media.
- name: id | type: string | description: Comment ID.
- name: value | type: string | description:
- name: revision | type: string | description: Revision number, which increments by 1 each time the comment is updated. To prevent conflicting changes, the current `revision` must be passed when updating the comment.
- name: value | type: string | description:
- name: createdDate | type: string | description: Date and time the comment was created. **Note:** This is the date from the system database, not the actual date when the comment was created. For example, if you migrate comments created in 2016, the `createdDate` field will show the current year. For the actual creation date, see the `commentDate` field.
- name: seconds | type: string | description:
- name: nanos | type: number | description:
- name: updatedDate | type: string | description: Date and time the comment was last updated.
- name: appId | type: string | description: ID of the app that the comment is added to.
- name: contextId | type: string | description: ID of the specific context the comment is in response to. Within some Wix apps, the `contextId` will be the same as the `resourceId`. For example in Wix Forum, the `forumPostId` is used as both the `contextId` and the `resourceId`.
- name: resourceId | type: string | description: ID of the specific resource that the comment is in response to. Within some Wix apps, the `resourceId` will be the same as the `contextId`. For example in Wix Forum, the `forumPostId` is used as both the `resourceId` and the `contextId`.
- name: content | type: CommentContent | description: Published comment content.
- name: richContent | type: RichContent | description: Comment rich content. See.md Ricos document reference
- name: nodes | type: Array | description: Node objects representing a rich content document.
- name: metadata | type: Metadata | description: Object metadata.
- name: documentStyle | type: DocumentStyle | description: Global styling for header, paragraph, block quote, and code block nodes in the object.
- name: mentions | type: Array | description: People to tag with this comment. People can include users, members, visitors, or groups.
- name: attachments | type: Array | description: Content attachments.
- name: mimeType | type: string | description: Mime type of attachment.
- name: draftContent | type: CommentContent | description: Unpublished comment content.
- name: author | type: CommentAuthor | description: Comment's author.
- name: parentComment | type: ParentComment | description: Parent comment information. Only present if this comment is in a direct reply to another comment. See **Terminology** in the Comments introduction for more information about parent comments.
- name: id | type: string | description: Comment ID of the parent comment.
- name: author | type: CommentAuthor | description: Author of the parent comment.
- name: status | type: string | description: Parent comment status.
enum: UNKNOWN, PUBLISHED, DELETED, PENDING, HIDDEN
- name: replyCount | type: number | description: Number of comments that reply to this comment.
- name: voteSummary | type: VoteSummary | description: Summary of votes.
- name: netVoteCount | type: number | description: Number of upvotes less downvotes on this comment.
- name: upvoteCount | type: number | description: Number of upvotes on this comment.
- name: downvoteCount | type: number | description: Number of downvotes on this comment.
- name: status | type: string | description: Comment status.
- name: rating | type: number | description: Comment rating.
- name: value | type: number | description:
- name: reactionSummary | type: CommentReactionSummary | description: Summary of reactions.
- name: total | type: number | description: Total amount of reactions.
- name: reactionCodeCount | type: object | description: Number of each type of reaction. `key` is the code for a reaction type and `value` is the amount of that reaction type.
- name: marked | type: boolean | description: Whether the comment is marked.
- name: commentDate | type: string | description: Date and time when the comment was actually created.
- name: contentEdited | type: boolean | description: Whether the comment has the updated content.
- name: value | type: boolean | description:
```