removeContactsFromGroupWithHttpInfo method

Future<Response> removeContactsFromGroupWithHttpInfo(
  1. String groupId,
  2. UpdateGroupContacts updateGroupContacts
)

Remove contacts from a group

Note: This method returns the HTTP Response.

Parameters:

Implementation

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

  // ignore: prefer_final_locals
  Object? postBody = updateGroupContacts;

  final queryParams = <QueryParam>[];
  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,
  );
}