## Patch Gateway Log `ai_gateway.logs.edit(strid, LogEditParams**kwargs) -> object` **patch** `/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs/{id}` Updates metadata for an AI Gateway log entry. ### Parameters - `account_id: str` - `gateway_id: str` gateway id - `id: str` - `feedback: Optional[float]` - `metadata: Optional[Dict[str, Union[str, float, bool]]]` - `str` - `float` - `bool` - `score: Optional[float]` ### Returns - `object` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) response = client.ai_gateway.logs.edit( id="id", account_id="0d37909e38d3e99c29fa2cd343ac421a", gateway_id="my-gateway", ) print(response) ``` #### Response ```json { "result": {}, "success": true } ```