updatePagePropertyById method
Future<ContentProperty>
updatePagePropertyById({
- required int pageId,
- required int propertyId,
- bool? serializeIdsAsStrings,
- required ContentPropertyUpdateRequest body,
Update a content property for a page by its id.
Permissions required: Permission to edit the page.
Implementation
Future<ContentProperty> updatePagePropertyById(
{required int pageId,
required int propertyId,
bool? serializeIdsAsStrings,
required ContentPropertyUpdateRequest body}) async {
return ContentProperty.fromJson(await _client.send(
'put',
'pages/{page-id}/properties/{property-id}',
pathParameters: {
'page-id': '$pageId',
'property-id': '$propertyId',
},
queryParameters: {
if (serializeIdsAsStrings != null)
'serialize-ids-as-strings': '$serializeIdsAsStrings',
},
body: body.toJson(),
));
}