getAttachmentContentPropertiesById method

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

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}) async {
  return ContentProperty.fromJson(await _client.send(
    'get',
    'attachments/{attachment-id}/properties/{property-id}',
    pathParameters: {
      'attachment-id': attachmentId,
      'property-id': '$propertyId',
    },
  ));
}