updateApiKey method
Changes information about an ApiKey resource.
May throw BadRequestException.
May throw ConflictException.
May throw LimitExceededException.
May throw NotFoundException.
May throw TooManyRequestsException.
May throw UnauthorizedException.
Parameter apiKey :
The identifier of the ApiKey resource to be updated.
Parameter patchOperations :
For more information about supported patch operations, see Patch
Operations.
Implementation
Future<ApiKey> updateApiKey({
required String apiKey,
List<PatchOperation>? patchOperations,
}) async {
final $payload = <String, dynamic>{
if (patchOperations != null) 'patchOperations': patchOperations,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/apikeys/${Uri.encodeComponent(apiKey)}',
exceptionFnMap: _exceptionFns,
);
return ApiKey.fromJson(response);
}