getAttachmentContentProperties method
Retrieves all Content Properties tied to a specified attachment.
Permissions required: Permission to view the attachment.
Implementation
Future<MultiEntityResult<ContentProperty>> getAttachmentContentProperties(
{required String attachmentId,
String? key,
String? sort,
String? cursor,
int? limit,
bool? serializeIdsAsStrings}) async {
return MultiEntityResult.fromJson(
await _client.send(
'get',
'attachments/{attachment-id}/properties',
pathParameters: {
'attachment-id': attachmentId,
},
queryParameters: {
if (key != null) 'key': key,
if (sort != null) 'sort': sort,
if (cursor != null) 'cursor': cursor,
if (limit != null) 'limit': '$limit',
if (serializeIdsAsStrings != null)
'serialize-ids-as-strings': '$serializeIdsAsStrings',
},
),
reviver: (v) => ContentProperty.fromJson(v as Map<String, Object?>),
);
}