Comment Object


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.

Properties
appIdstringformat GUIDimmutable

ID of the app that the comment is added to.


authorCommentAuthorimmutable

Comment's author.


commentDatestringimmutableformat date-time

Date and time when the comment was actually created.


contentCommentContent

Published comment content.


contentEditedbooleanRead-only

Whether the comment has the updated content.


contextIdstringimmutablemaxLength 128

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.


createdDatestringRead-onlyformat date-time

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.


idstringRead-onlyformat GUID

Comment ID.


markedboolean

Whether the comment is marked.


parentCommentParentComment

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.


ratingintegerRead-onlyformat int32

Comment rating.


reactionSummaryCommentReactionSummaryRead-only

Summary of reactions.


replyCountintegerRead-only

Number of comments that reply to this comment.


resourceIdstringimmutablemaxLength 128

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.


revisionstringRead-onlyformat int64

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.


statusstringRead-only

Comment status.


updatedDatestringRead-onlyformat date-time

Date and time the comment was last updated.


voteSummaryVoteSummaryRead-only

Summary of votes.

Did this help?