{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates a new custom log transformer for an account.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/logpush_identifier"}},"required":["account_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/logpush_transformer_create_request"}},"required":["path","body"],"additionalProperties":false,"definitions":{"logpush_identifier":{"description":"Identifier.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"logpush_transformer_create_request":{"type":"object","properties":{"code":{"$ref":"#/definitions/logpush_transformer_code"},"description":{"$ref":"#/definitions/logpush_transformer_description"},"name":{"$ref":"#/definitions/logpush_transformer_name"}},"required":["name","code"]},"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":"Create transformer","id":"cloudflare.post-accounts-account_id-logpush-transformers","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{"name":"redact-pii","code":"SELECT ClientIP, RayID FROM http_requests"}},"maxRequests":1,"summary":false}}