createBlogPost method
Creates a new blog post in the space specified by the spaceId.
By default this will create the blog post as a non-draft, unless the status is specified as draft. If creating a non-draft, the title must not be empty.
Currently only supports the storage representation specified in the body.representation enums below
Implementation
Future<BlogPostSingle> createBlogPost(
{bool? private, required BlogPostCreateRequest body}) async {
return BlogPostSingle.fromJson(await _client.send(
'post',
'blogposts',
queryParameters: {
if (private != null) 'private': '$private',
},
body: body.toJson(),
));
}