updateEntitlementWithHttpInfo method
Future<Response>
updateEntitlementWithHttpInfo(
- String account,
- String entitlement, {
- UpdateEntitlementRequest? updateEntitlementRequest,
Update an entitlement
Updates the specified entitlement 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 entitlement (required): The identifier (UUID) of the entitlement to be updated.
-
UpdateEntitlementRequest updateEntitlementRequest:
Implementation
Future<Response> updateEntitlementWithHttpInfo(String account, String entitlement, { UpdateEntitlementRequest? updateEntitlementRequest, }) async {
// ignore: prefer_const_declarations
final path = r'/accounts/{account}/entitlements/{entitlement}'
.replaceAll('{account}', account)
.replaceAll('{entitlement}', entitlement);
// ignore: prefer_final_locals
Object? postBody = updateEntitlementRequest;
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,
);
}