updateApiKeyWithHttpInfo method

Future<Response> updateApiKeyWithHttpInfo(
  1. String apiKeyID,
  2. UpdateApiKeyRequest updateApiKeyRequest
)

Update an API Key

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<http.Response> updateApiKeyWithHttpInfo(
  String apiKeyID,
  UpdateApiKeyRequest updateApiKeyRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/api_keys/{apiKeyID}'.replaceAll('{apiKeyID}', apiKeyID);

  // ignore: prefer_final_locals
  Object? postBody = updateApiKeyRequest;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];

  return apiClient.invokeAPI(
    path,
    'PATCH',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}