updateBlogPost method
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, required BlogPostUpdateRequest body}) async {
return BlogPostSingle.fromJson(await _client.send(
'put',
'blogposts/{id}',
pathParameters: {
'id': '$id',
},
body: body.toJson(),
));
}