interface Request {
    comment: string;
    commentId?: string;
    userName: string;
}

Properties

comment: string

The text of the comment

commentId?: string

If not provided, parent comment will be created. If parent commentId is provided, then it will create child comment to that parent. If child commentid is provided, then child comment for the corresponding parent comment will be created.

userName: string

Username submitting the comment. This user must exist in Rev. Unless the user has been assigned the Account Admin role, this user must also match the authenticated user making the API call.