changeLicenseUserWithHttpInfo method

Future<Response> changeLicenseUserWithHttpInfo(
  1. String account,
  2. String license,
  3. ChangeLicenseUserRequest changeLicenseUserRequest
)

Change user

Change a license's user relationship. This will immediately transfer the license resource to the new user.

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.

  • ChangeLicenseUserRequest changeLicenseUserRequest (required):

Implementation

Future<Response> changeLicenseUserWithHttpInfo(String account, String license, ChangeLicenseUserRequest changeLicenseUserRequest,) async {
  // ignore: prefer_const_declarations
  final path = r'/accounts/{account}/licenses/{license}/user'
    .replaceAll('{account}', account)
    .replaceAll('{license}', license);

  // ignore: prefer_final_locals
  Object? postBody = changeLicenseUserRequest;

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