createPageProperty method

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

Creates a new content property for a page.

Permissions required: Permission to update the page.

Implementation

Future<ContentProperty> createPageProperty(
    {required int pageId, required ContentPropertyCreateRequest body}) async {
  return ContentProperty.fromJson(await _client.send(
    'post',
    'pages/{page-id}/properties',
    pathParameters: {
      'page-id': '$pageId',
    },
    body: body.toJson(),
  ));
}