markComment( )


Sets marked to TRUE to mark a comment.

Call Query Comments to filter for marked comments to then apply customization to. See Sample Flows for an example.

Authentication

This function requires elevated permissions and runs only on the backend and on dashboard pages.

Permissions
Manage Comments
Learn more about app permissions.
Method Declaration
Copy
function markComment(
  commentId: string,
  options: MarkCommentOptions,
): Promise<MarkCommentResponse>;
Method Parameters
commentIdstringRequired

ID of the comment to mark.


optionsMarkCommentOptions
Returns
Return Type:Promise<MarkCommentResponse>
JavaScript
import { comments } from "wix-comments.v2"; async function markComment(commentId, options) { try { const result = await comments.markComment(commentId, options); return result; } catch (error) { console.error(error); // Handle the error } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?