updateCustomContentPropertyById method

Future<ContentProperty> updateCustomContentPropertyById({
  1. required int customContentId,
  2. required int propertyId,
  3. 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,
    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',
    },
    body: body.toJson(),
  ));
}