deleteGroupWithHttpInfo method

Future<Response> deleteGroupWithHttpInfo(
  1. String groupId
)

Deletes a custom group

Soft deletes a custom group. ##### Permissions Must have custom_group_delete 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.

Implementation

Future<Response> deleteGroupWithHttpInfo(
  String groupId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/groups/{group_id}'.replaceAll('{group_id}', groupId);

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];

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