updateInlineComment method

Future<InlineCommentModel> updateInlineComment({
  1. required int commentId,
  2. required UpdateInlineCommentModel body,
})

Update an inline comment. This can be used to update the body text of a comment and/or to resolve the 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<InlineCommentModel> updateInlineComment(
    {required int commentId, required UpdateInlineCommentModel body}) async {
  return InlineCommentModel.fromJson(await _client.send(
    'put',
    'inline-comments/{comment-id}',
    pathParameters: {
      'comment-id': '$commentId',
    },
    body: body.toJson(),
  ));
}