deleteGroupMembersWithHttpInfo method
Future<Response>
deleteGroupMembersWithHttpInfo(
- String groupId,
- MmDeleteGroupMembersRequest mmDeleteGroupMembersRequest
Removes members from a custom group
Soft deletes a custom group members. ##### Permissions Must have custom_group_manage_members
permission for the given group. Minimum server version: 6.3
Note: This method returns the HTTP Response
.
Parameters:
-
String groupId (required): The ID of the group to delete.
-
MmDeleteGroupMembersRequest mmDeleteGroupMembersRequest (required):
Implementation
Future<Response> deleteGroupMembersWithHttpInfo(
String groupId,
MmDeleteGroupMembersRequest mmDeleteGroupMembersRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/groups/{group_id}/members'.replaceAll('{group_id}', groupId);
// ignore: prefer_final_locals
Object? postBody = mmDeleteGroupMembersRequest;
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,
);
}