Search.../

unmarkComment( )

Developer Preview

Sets marked to "FALSE" to unmark a comment.

Admin Method

This function requires elevated permissions to run. This function is not universal and runs only on the backend.

Syntax

function unmarkComment(commentId: string): Promise<UnmarkCommentResponse>

unmarkComment Parameters

NAME
TYPE
DESCRIPTION
commentId
string

ID of the comment to unmark.

Returns

Return Type:

Promise<
UnmarkCommentResponse
>
NAME
TYPE
DESCRIPTION
comment
Comment

Unmarked comment.

Was this helpful?

unmarkComment example

Copy Code
1import { comments } from 'wix-comments.v2';
2
3 async function unmarkComment(commentId, options) {
4 try {
5 const result = await comments.unmarkComment(commentId, options);
6
7 return result;
8 } catch (error) {
9 console.error(error);
10 // Handle the error
11 }
12 }
13