pub async fn disable_api_key(
client: &HttpClient,
request: DisableApiKeyRequest,
) -> Result<DisableApiKeyResponse, HttpError>Expand description
Disables an existing API key.
Once disabled, the API key can no longer be used for authentication.
The key’s metadata is preserved with a disabled timestamp.
§Arguments
client- The HTTP client to use for the request.request- The request containing the API key to disable.
§Returns
The disabled API key with updated metadata.
§Errors
Returns an HttpError if the request fails or the server returns an error.