This page redirects to an external site: https://developer.wordpress.org/reference/functions/update_comment_meta/
The function update_comment_meta() updates the value of an existing comment meta key for the specified comment.
This may be used in place of the add_comment_meta() function. The first thing this function will do is make sure that $meta_key already exists on $comment_id. If it does not it will be added.
<?php update_comment_meta( $comment_id, $meta_key, $meta_value, $prev_value ); ?>
<?php update_comment_meta( 3416, 'my_key', 'Brad' ); ?>
Since: 2.9.0
update_comment_meta() is located in wp-includes/comment.php
Comment Meta Functions: add_comment_meta(), get_comment_meta(), update_comment_meta(), delete_comment_meta()