TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

ChangeComment

ChangeComment(sId, oCommentData)

Changes the specified comment.

Parameters:

Name Type Description
sId string

The comment ID.

oCommentData CommentData

An object which contains the new comment data.

Returns:

This method doesn't return any data.

Example

Copy code
window.Asc.plugin.executeMethod ("ChangeComment", ["1_631",
    {
        "UserName": "John Smith",
        "QuoteText": "text",
        "Text": "comment",
        "Time": "1662737941471",
        "Solved": true,
        "Replies": [
            {
                "UserName": "Mark Potato",
                "Text": "reply 1",
                "Time": "1662740895892",
                "Solved": false
            }
        ]
    }
]);