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