createCommentProperty method

Future<ContentProperty> createCommentProperty({
  1. required int commentId,
  2. required ContentPropertyCreateRequest body,
})

Creates a new content property for a comment.

Permissions required: Permission to update the comment.

Implementation

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