changeMachineGroupWithHttpInfo method

Future<Response> changeMachineGroupWithHttpInfo(
  1. String account,
  2. String machine,
  3. ChangeMachineGroupRequest changeMachineGroupRequest
)

Change group

Change a machine's group relationship. This will immediately transfer the machine resource to the new group. Changing the machine's group will not retroactively change the group of its user or license.

Note: This method returns the HTTP Response.

Parameters:

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

  • String machine (required): The identifier (UUID) or key of the machine to be updated.

  • ChangeMachineGroupRequest changeMachineGroupRequest (required):

Implementation

Future<Response> changeMachineGroupWithHttpInfo(String account, String machine, ChangeMachineGroupRequest changeMachineGroupRequest,) async {
  // ignore: prefer_const_declarations
  final path = r'/accounts/{account}/machines/{machine}/group'
    .replaceAll('{account}', account)
    .replaceAll('{machine}', machine);

  // ignore: prefer_final_locals
  Object? postBody = changeMachineGroupRequest;

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

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


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