updateFooterComment method

Future<FooterCommentModel> updateFooterComment({
  1. required int commentId,
  2. required UpdateFooterCommentModel body,
})

Update a footer comment. This can be used to update the body text of a comment.

Permissions required: Permission to view the content of the page or blogpost and its corresponding space. Permission to create comments in the space.

Implementation

Future<FooterCommentModel> updateFooterComment(
    {required int commentId, required UpdateFooterCommentModel body}) async {
  return FooterCommentModel.fromJson(await _client.send(
    'put',
    'footer-comments/{comment-id}',
    pathParameters: {
      'comment-id': '$commentId',
    },
    body: body.toJson(),
  ));
}