updateFooterComment method
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,
bool? serializeIdsAsStrings,
required UpdateFooterCommentModel body}) async {
return FooterCommentModel.fromJson(await _client.send(
'put',
'footer-comments/{comment-id}',
pathParameters: {
'comment-id': '$commentId',
},
queryParameters: {
if (serializeIdsAsStrings != null)
'serialize-ids-as-strings': '$serializeIdsAsStrings',
},
body: body.toJson(),
));
}