getCustomContentByTypeInSpace method
Returns all custom content for a given type within a given space. The
number of results is limited by the limit
parameter and additional
results (if available)
will be available through the next
URL present in the Link
response
header.
Permissions required: Permission to view the custom content and the corresponding space.
Implementation
Future<MultiEntityResult<CustomContentBulk>> getCustomContentByTypeInSpace(
{required int id,
required String type,
String? cursor,
int? limit,
String? bodyFormat}) async {
return MultiEntityResult.fromJson(
await _client.send(
'get',
'spaces/{id}/custom-content',
pathParameters: {
'id': '$id',
},
queryParameters: {
'type': type,
if (cursor != null) 'cursor': cursor,
if (limit != null) 'limit': '$limit',
if (bodyFormat != null) 'body-format': bodyFormat,
},
),
reviver: (v) => CustomContentBulk.fromJson(v as Map<String, Object?>),
);
}