removeTeamsFromRetentionPolicyWithHttpInfo method

Future<Response> removeTeamsFromRetentionPolicyWithHttpInfo(
  1. String policyId,
  2. List<String> requestBody
)

Delete teams from a granular data retention policy

Delete teams from a granular data retention policy. Minimum server version: 5.35 ##### Permissions Must have the sysconsole_write_compliance_data_retention permission. ##### License Requires an E20 license.

Note: This method returns the HTTP Response.

Parameters:

  • String policyId (required): The ID of the granular retention policy.

  • List<String> requestBody (required):

Implementation

Future<Response> removeTeamsFromRetentionPolicyWithHttpInfo(
  String policyId,
  List<String> requestBody,
) async {
  // ignore: prefer_const_declarations
  final path = r'/data_retention/policies/{policy_id}/teams'.replaceAll('{policy_id}', policyId);

  // ignore: prefer_final_locals
  Object? postBody = requestBody;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];

  return apiClient.invokeAPI(
    path,
    'DELETE',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}