{"uid":"cap_dR7V1x1M24NSWThlwzn38","slug":"one-engine-records-rename-639db92e","name":"ONE Engine Records Rename","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v3/records/rename/t8?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["records"],"properties":{"keys":{"type":"array"},"rename":{"type":"object"},"records":{"type":"array","description":"Up to 500 JSON objects"},"defaults":{"type":"object"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dtfefFM3sS0R8xwF1EKhC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Renames fields (keys) across an array of JSON record objects according to a provided mapping, with optional key filtering and default values.","exampleAgentPrompt":"I have a batch of up to 500 JSON records where the field is called 'user_id' but I need it renamed to 'userId', and 'ts' renamed to 'timestamp' — can you run them through the rename transformer?","exampleUseCases":[{"title":"ETL field normalization pipeline","prompt":"I'm pulling records from a legacy system where fields are named 'cust_nm', 'ord_dt', and 'amt' — rename them to 'customerName', 'orderDate', and 'amount' across all 300 records before I load them into the new database."},{"title":"API response schema harmonization","prompt":"I'm combining data from two APIs and one uses 'email_address' while the other uses 'email' — can you rename 'email_address' to 'email' and 'phone_number' to 'phone' across these records so they match?"},{"title":"Selecting and renaming key subset","prompt":"From these product records, keep only 'sku', 'retail_price', and 'stock_count', and rename them to 'id', 'price', and 'inventory' respectively."}],"resultDescription":"Returns an array of transformed JSON objects with fields renamed according to the provided mapping. Keys not included in the rename map remain unchanged or are filtered based on the keys parameter. Default values are applied where specified.","failureModes":["Missing required 'records' array returns validation error","Records array exceeding 500 objects may be rejected or truncated","Invalid rename mapping (non-object value) causes schema error","Malformed JSON in records triggers parse error","Payment not fulfilled via x402 results in 402 Payment Required response","Empty records array returns empty result set"],"whenToPreferThis":"Choose this endpoint when you need a cheap ($0.01 USDC), stateless, pay-per-call way to rename, filter, and set defaults on up to 500 JSON records in a single call — especially in autonomous agent workflows on Base where x402 micropayments are already supported. Prefer this over in-agent code execution when you want a hosted, auditable transformation step without spinning up compute.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:44.072Z","isFirstParty":false,"canonicalSlug":"one-engine-records-rename-639db92e"}