addContactsToGroupWithHttpInfo method
Future<Response>
addContactsToGroupWithHttpInfo(
- String groupId,
- UpdateGroupContacts updateGroupContacts
Add contacts to a group
Note: This method returns the HTTP Response
.
Parameters:
-
String groupId (required):
-
UpdateGroupContacts updateGroupContacts (required):
Implementation
Future<Response> addContactsToGroupWithHttpInfo(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,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}