updateCommentPropertyById method

Future<ContentProperty> updateCommentPropertyById({
  1. required int commentId,
  2. required int propertyId,
  3. required ContentPropertyUpdateRequest body,
})

Update a content property for a comment by its id.

Permissions required: Permission to edit the comment.

Implementation

Future<ContentProperty> updateCommentPropertyById(
    {required int commentId,
    required int propertyId,
    required ContentPropertyUpdateRequest body}) async {
  return ContentProperty.fromJson(await _client.send(
    'put',
    'comments/{comment-id}/properties/{property-id}',
    pathParameters: {
      'comment-id': '$commentId',
      'property-id': '$propertyId',
    },
    body: body.toJson(),
  ));
}