activateMachineWithHttpInfo method

Future<Response> activateMachineWithHttpInfo(
  1. String account,
  2. ActivateMachineRequest activateMachineRequest
)

Activate a machine

Creates, or activates, a new machine resource for a license.

Note: This method returns the HTTP Response.

Parameters:

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

  • ActivateMachineRequest activateMachineRequest (required):

Implementation

Future<Response> activateMachineWithHttpInfo(String account, ActivateMachineRequest activateMachineRequest,) async {
  // ignore: prefer_const_declarations
  final path = r'/accounts/{account}/machines'
    .replaceAll('{account}', account);

  // ignore: prefer_final_locals
  Object? postBody = activateMachineRequest;

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

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


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