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