getPageContentPropertiesById method

Future<ContentProperty> getPageContentPropertiesById({
  1. required int pageId,
  2. required int propertyId,
})

Retrieves a specific Content Property by ID that is attached to a specified page.

Permissions required: Permission to view the page.

Implementation

Future<ContentProperty> getPageContentPropertiesById(
    {required int pageId, required int propertyId}) async {
  return ContentProperty.fromJson(await _client.send(
    'get',
    'pages/{page-id}/properties/{property-id}',
    pathParameters: {
      'page-id': '$pageId',
      'property-id': '$propertyId',
    },
  ));
}