createBlogpostProperty method
Future<ContentProperty>
createBlogpostProperty({
- required int blogpostId,
- bool? serializeIdsAsStrings,
- 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,
bool? serializeIdsAsStrings,
required ContentPropertyCreateRequest body}) async {
return ContentProperty.fromJson(await _client.send(
'post',
'blogposts/{blogpost-id}/properties',
pathParameters: {
'blogpost-id': '$blogpostId',
},
queryParameters: {
if (serializeIdsAsStrings != null)
'serialize-ids-as-strings': '$serializeIdsAsStrings',
},
body: body.toJson(),
));
}