deleteApiKey method

Future<void> deleteApiKey({
  1. required String apiId,
  2. required String id,
})

Deletes an API key.

May throw BadRequestException. May throw NotFoundException. May throw UnauthorizedException. May throw InternalFailureException.

Parameter apiId : The API ID.

Parameter id : The ID for the API key.

Implementation

Future<void> deleteApiKey({
  required String apiId,
  required String id,
}) async {
  ArgumentError.checkNotNull(apiId, 'apiId');
  ArgumentError.checkNotNull(id, 'id');
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v1/apis/${Uri.encodeComponent(apiId)}/apikeys/${Uri.encodeComponent(id)}',
    exceptionFnMap: _exceptionFns,
  );
}