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.
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.
ID of the app that the comment is added to.
Comment's author.
Date and time when the comment was actually created.
Published comment content.
Whether the comment has the updated content.
ID of the specific context the comment is in response to.
Within some Wix apps, the
contextIdwill be the same as theresourceId. For example in Wix Forum, theforumPostIdis used as both thecontextIdand theresourceId.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
createdDatefield will show the current year. For the actual creation date, see thecommentDatefield.Comment ID.
Whether the comment is marked.
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.
Comment rating.
Summary of reactions.
Number of comments that reply to this comment.
ID of the specific resource that the comment is in response to.
Within some Wix apps, the
resourceIdwill be the same as thecontextId. For example in Wix Forum, theforumPostIdis used as both theresourceIdand thecontextId.Revision number, which increments by 1 each time the comment is updated.
To prevent conflicting changes, the current
revisionmust be passed when updating the comment.Comment status.
Date and time the comment was last updated.
Summary of votes.