updateGroupWithHttpInfo method

Future<Response> updateGroupWithHttpInfo(
  1. String account,
  2. String group, {
  3. UpdateGroupRequest? updateGroupRequest,
})

Update a group

Updates the specified group resource by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

Note: This method returns the HTTP Response.

Parameters:

  • String account (required): The identifier (UUID) or slug of your Keygen account.

  • String group (required): The identifier (UUID) of the group to be updated.

  • UpdateGroupRequest updateGroupRequest:

Implementation

Future<Response> updateGroupWithHttpInfo(String account, String group, { UpdateGroupRequest? updateGroupRequest, }) async {
  // ignore: prefer_const_declarations
  final path = r'/accounts/{account}/groups/{group}'
    .replaceAll('{account}', account)
    .replaceAll('{group}', group);

  // ignore: prefer_final_locals
  Object? postBody = updateGroupRequest;

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

  const contentTypes = <String>['application/vnd.api+json'];


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