updateLicenseWithHttpInfo method
Future<Response>
updateLicenseWithHttpInfo(
- String account,
- String license, {
- UpdateLicenseRequest? updateLicenseRequest,
Update a license
Updates the specified license resource by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
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 be updated.
-
UpdateLicenseRequest updateLicenseRequest:
Implementation
Future<Response> updateLicenseWithHttpInfo(String account, String license, { UpdateLicenseRequest? updateLicenseRequest, }) async {
// ignore: prefer_const_declarations
final path = r'/accounts/{account}/licenses/{license}'
.replaceAll('{account}', account)
.replaceAll('{license}', license);
// ignore: prefer_final_locals
Object? postBody = updateLicenseRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/vnd.api+json'];
return apiClient.invokeAPI(
path,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}