detachLicenseEntitlementsWithHttpInfo method
Future<Response>
detachLicenseEntitlementsWithHttpInfo(
- String account,
- String license,
- DetachLicenseEntitlementsRequest detachLicenseEntitlementsRequest
Detach license entitlements
Detach entitlements from a license. This will immediately be taken into effect for all future validations. Below are the limitations to detaching an entitlement: - You cannot detach an entitlement that is attached through the policy.
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.
-
DetachLicenseEntitlementsRequest detachLicenseEntitlementsRequest (required):
Implementation
Future<Response> detachLicenseEntitlementsWithHttpInfo(String account, String license, DetachLicenseEntitlementsRequest detachLicenseEntitlementsRequest,) async {
// ignore: prefer_const_declarations
final path = r'/accounts/{account}/licenses/{license}/entitlements'
.replaceAll('{account}', account)
.replaceAll('{license}', license);
// ignore: prefer_final_locals
Object? postBody = detachLicenseEntitlementsRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/vnd.api+json'];
return apiClient.invokeAPI(
path,
'DELETE',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}