{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Updates an existing custom log transformer. When `code` is provided, the SQL query is validated and a new version is created. When `code` is omitted, only the name and description are updated. Omitting `description` clears the existing description.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/logpush_identifier"},"transformer_id":{"$ref":"#/definitions/logpush_transformer_identifier"}},"required":["account_id","transformer_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/logpush_transformer_update_request"}},"required":["path","body"],"additionalProperties":false,"definitions":{"logpush_identifier":{"description":"Identifier.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"logpush_transformer_identifier":{"description":"The transformer ID.","type":"integer","minimum":1,"examples":[42]},"logpush_transformer_update_request":{"type":"object","properties":{"code":{"$ref":"#/definitions/logpush_transformer_code"},"description":{"$ref":"#/definitions/logpush_transformer_description"},"name":{"$ref":"#/definitions/logpush_transformer_name"}},"required":["name"]},"logpush_transformer_code":{"description":"The SQL transformer query. Maximum 32 KB. The query must contain a FROM clause referencing a valid logpush dataset.","type":"string","maxLength":32768,"examples":["SELECT ClientIP, RayID FROM http_requests"]},"logpush_transformer_description":{"description":"Optional customer-provided description.","type":"string","maxLength":4096,"examples":["Redacts PII fields from HTTP request logs."]},"logpush_transformer_name":{"description":"Customer-provided name for identification.","type":"string","maxLength":255,"examples":["redact-pii"]}}},"name":"Update transformer","id":"cloudflare.put-accounts-account_id-logpush-transformers-transformer_id","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353","transformer_id":42},"body":{"name":"redact-pii"}},"maxRequests":1,"summary":false}}