detachPolicyEntitlementsWithHttpInfo method
Future<Response>
detachPolicyEntitlementsWithHttpInfo(
- 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.
Note: This method returns the HTTP Response
.
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<Response> detachPolicyEntitlementsWithHttpInfo(String account, String policy, DetachPolicyEntitlementsRequest detachPolicyEntitlementsRequest,) async {
// ignore: prefer_const_declarations
final path = r'/accounts/{account}/policies/{policy}/entitlements'
.replaceAll('{account}', account)
.replaceAll('{policy}', policy);
// ignore: prefer_final_locals
Object? postBody = detachPolicyEntitlementsRequest;
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,
);
}