patchGroupWithHttpInfo method

Future<Response> patchGroupWithHttpInfo(
  1. String groupId,
  2. MmPatchGroupRequest mmPatchGroupRequest
)

Patch a group

Partially update a group by providing only the fields you want to update. Omitted fields will not be updated. The fields that can be updated are defined in the request body, all other provided fields will be ignored. ##### Permissions Must have manage_system permission. Minimum server version: 5.11

Note: This method returns the HTTP Response.

Parameters:

  • String groupId (required): Group GUID

  • MmPatchGroupRequest mmPatchGroupRequest (required): Group object that is to be updated

Implementation

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

  // ignore: prefer_final_locals
  Object? postBody = mmPatchGroupRequest;

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