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