createFooterComment method

Future<FooterCommentModel> createFooterComment({
  1. required CreateFooterCommentModel body,
})

Create a footer comment. This can be at the top level (specifying pageId or blogPostId in the request body) or as a reply (specifying parentCommentId in the request body).

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> createFooterComment(
    {required CreateFooterCommentModel body}) async {
  return FooterCommentModel.fromJson(await _client.send(
    'post',
    'footer-comments',
    body: body.toJson(),
  ));
}