createCustomContentProperty method

Future<ContentProperty> createCustomContentProperty({
  1. required int customContentId,
  2. required ContentPropertyCreateRequest body,
})

Creates a new content property for a piece of custom content.

Permissions required: Permission to update the custom content.

Implementation

Future<ContentProperty> createCustomContentProperty(
    {required int customContentId,
    required ContentPropertyCreateRequest body}) async {
  return ContentProperty.fromJson(await _client.send(
    'post',
    'custom-content/{custom-content-id}/properties',
    pathParameters: {
      'custom-content-id': '$customContentId',
    },
    body: body.toJson(),
  ));
}