updateBlogPost method

Future<BlogPostSingle> updateBlogPost({
  1. required int id,
  2. bool? serializeIdsAsStrings,
})

Update a blog post by id.

Permissions required: Permission to view the blog post and its corresponding space. Permission to update blog posts in the space.

Implementation

Future<BlogPostSingle> updateBlogPost(
    {required int id, bool? serializeIdsAsStrings}) async {
  return BlogPostSingle.fromJson(await _client.send(
    'put',
    'blogposts/{id}',
    pathParameters: {
      'id': '$id',
    },
    queryParameters: {
      if (serializeIdsAsStrings != null)
        'serialize-ids-as-strings': '$serializeIdsAsStrings',
    },
  ));
}