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