getBlogpostContentPropertiesById method

Future<ContentProperty> getBlogpostContentPropertiesById({
  1. required int blogpostId,
  2. required int propertyId,
  3. bool? serializeIdsAsStrings,
})

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

Permissions required: Permission to view the blog post.

Implementation

Future<ContentProperty> getBlogpostContentPropertiesById(
    {required int blogpostId,
    required int propertyId,
    bool? serializeIdsAsStrings}) async {
  return ContentProperty.fromJson(await _client.send(
    'get',
    'blogposts/{blogpost-id}/properties/{property-id}',
    pathParameters: {
      'blogpost-id': '$blogpostId',
      'property-id': '$propertyId',
    },
    queryParameters: {
      if (serializeIdsAsStrings != null)
        'serialize-ids-as-strings': '$serializeIdsAsStrings',
    },
  ));
}