detachLicenseEntitlements method
Future<void>
detachLicenseEntitlements(
- 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.
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<void> detachLicenseEntitlements(String account, String license, DetachLicenseEntitlementsRequest detachLicenseEntitlementsRequest,) async {
final response = await detachLicenseEntitlementsWithHttpInfo(account, license, detachLicenseEntitlementsRequest,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
}