renewLicenseWithHttpInfo method

Future<Response> renewLicenseWithHttpInfo(
  1. String account,
  2. String license
)

Renew a license

Action to renew a license. Extends license expiry by the policy's duration.

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 URL-safe key of the license to renew. key.

Implementation

Future<Response> renewLicenseWithHttpInfo(String account, String license,) async {
  // ignore: prefer_const_declarations
  final path = r'/accounts/{account}/licenses/{license}/actions/renew'
    .replaceAll('{account}', account)
    .replaceAll('{license}', license);

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];


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