updateApiKeysWithHttpInfo method
Future<Response>
updateApiKeysWithHttpInfo(
- String companyId,
- String apiKeyId,
- ApiKeysUpdate apiKeysUpdate
Update an existing API key by ID. Can update metadata like name, expiration, rate limits, etc. Cannot update the actual key value (for security).
Note: This method returns the HTTP Response.
Parameters:
-
String companyId (required): Unique identifier for the Company
-
String apiKeyId (required): Unique identifier for the Api Key
-
ApiKeysUpdate apiKeysUpdate (required):
Implementation
Future<Response> updateApiKeysWithHttpInfo(String companyId, String apiKeyId, ApiKeysUpdate apiKeysUpdate,) 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 = apiKeysUpdate;
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,
);
}