createBlogpostProperty method

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

Creates a new property for a blogpost.

Permissions required: Permission to update the blog post.

Implementation

Future<ContentProperty> createBlogpostProperty(
    {required int blogpostId,
    required ContentPropertyCreateRequest body}) async {
  return ContentProperty.fromJson(await _client.send(
    'post',
    'blogposts/{blogpost-id}/properties',
    pathParameters: {
      'blogpost-id': '$blogpostId',
    },
    body: body.toJson(),
  ));
}