deleteApiKeysWithHttpInfo method
Delete (deactivate) single API key by api_key_id. Uses the api_key_id returned during creation for clean identification. Fixed to use correct primary key lookup.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> deleteApiKeysWithHttpInfo(String companyId, String apiKeyId,) async {
// ignore: prefer_const_declarations
final path = r'/companies/{company_id}/api-keys/{api_key_id}'
.replaceAll('{company_id}', companyId)
.replaceAll('{api_key_id}', apiKeyId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'DELETE',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}