getAttachmentContentPropertiesById method

Future<ContentProperty> getAttachmentContentPropertiesById({
  1. required String attachmentId,
  2. required int propertyId,
  3. bool? serializeIdsAsStrings,
})

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

Permissions required: Permission to view the attachment.

Implementation

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