getDataRetentionPoliciesWithHttpInfo method
Get the granular data retention policies
Gets details about the granular (i.e. team or channel-specific) data retention policies from the server. Minimum server version: 5.35 ##### Permissions Must have the sysconsole_read_compliance_data_retention
permission. ##### License Requires an E20 license.
Note: This method returns the HTTP Response
.
Parameters:
Implementation
Future<Response> getDataRetentionPoliciesWithHttpInfo({
int? page,
int? perPage,
}) async {
// ignore: prefer_const_declarations
final path = r'/data_retention/policies';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (page != null) {
queryParams.addAll(_queryParams('', 'page', page));
}
if (perPage != null) {
queryParams.addAll(_queryParams('', 'per_page', perPage));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}