detachPolicyEntitlements method
Future<void>
detachPolicyEntitlements(
- String account,
- String policy,
- DetachPolicyEntitlementsRequest detachPolicyEntitlementsRequest
Detach policy entitlements
Detach entitlements from a policy. This will immediately be taken into effect for all future license validations.
Parameters:
-
String account (required): The identifier (UUID) or slug of your Keygen account.
-
String policy (required): The identifier (UUID) of the policy to be updated.
-
DetachPolicyEntitlementsRequest detachPolicyEntitlementsRequest (required):
Implementation
Future<void> detachPolicyEntitlements(String account, String policy, DetachPolicyEntitlementsRequest detachPolicyEntitlementsRequest,) async {
final response = await detachPolicyEntitlementsWithHttpInfo(account, policy, detachPolicyEntitlementsRequest,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
}