{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Executes a SQL transformer against a single input record and returns the transformed output. This is a stateless endpoint — nothing is persisted.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/logpush_identifier"}},"required":["account_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/logpush_transformer_preview_request"}},"required":["path","body"],"additionalProperties":false,"definitions":{"logpush_identifier":{"description":"Identifier.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"logpush_transformer_preview_request":{"type":"object","properties":{"input":{"description":"A single log record to transform (JSON object).","type":"object","additionalProperties":true,"examples":[{"ClientIP":"198.51.100.1","ClientRequestHost":"example.com","EdgeStartTimestamp":1722513600000000000,"RayID":"abcdef1234567890"}]},"sql":{"$ref":"#/definitions/logpush_transformer_code"}},"required":["sql","input"]},"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"]}}},"name":"Preview transformer","id":"cloudflare.post-accounts-account_id-logpush-transformers-preview","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{"sql":"SELECT ClientIP, RayID FROM http_requests","input":{"ClientIP":"198.51.100.1","ClientRequestHost":"example.com","EdgeStartTimestamp":1722513600000000000,"RayID":"abcdef1234567890"}}},"maxRequests":1,"summary":false}}