updateBlogpostPropertyById method

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

Update a content property for blog post by its id.

Permissions required: Permission to edit the blog post.

Implementation

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