changeLicenseGroupWithHttpInfo method

Future<Response> changeLicenseGroupWithHttpInfo(
  1. String account,
  2. String license,
  3. ChangeLicenseGroupRequest changeLicenseGroupRequest
)

Change group

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

Note: This method returns the HTTP Response.

Parameters:

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

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

  • ChangeLicenseGroupRequest changeLicenseGroupRequest (required):

Implementation

Future<Response> changeLicenseGroupWithHttpInfo(String account, String license, ChangeLicenseGroupRequest changeLicenseGroupRequest,) async {
  // ignore: prefer_const_declarations
  final path = r'/accounts/{account}/licenses/{license}/group'
    .replaceAll('{account}', account)
    .replaceAll('{license}', license);

  // ignore: prefer_final_locals
  Object? postBody = changeLicenseGroupRequest;

  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,
  );
}