addGroupMembersWithHttpInfo method

Future<Response> addGroupMembersWithHttpInfo(
  1. String groupId,
  2. MmAddGroupMembersRequest mmAddGroupMembersRequest
)

Adds members to a custom group

Adds members to a custom group. ##### 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:

Implementation

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

  // ignore: prefer_final_locals
  Object? postBody = mmAddGroupMembersRequest;

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

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

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