{"uid":"cap_cgh_bvWQi0K-q-PH_6VVz","slug":"one-engine-records-rename-b849e031","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/t1?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.0005","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.0005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SUe6-ef4JcckQI-iLT6TQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Renames keys within an array of JSON records according to a field mapping, with optional key filtering and default values.","exampleAgentPrompt":"I have a batch of up to 500 JSON records where I need to rename the field 'user_id' to 'userId' and 'first_name' to 'firstName' — can you run those records through the ONE Engine rename utility and give me the updated list?","exampleUseCases":[{"title":"Normalizing API response field names","prompt":"I'm getting records from a third-party API with snake_case keys like 'created_at' and 'account_id', but my database expects camelCase like 'createdAt' and 'accountId' — can you rename those fields across all 200 records for me?"},{"title":"ETL pipeline schema alignment","prompt":"I have 350 product records with legacy field names like 'prod_name', 'prod_sku', and 'prod_price' that need to be renamed to 'name', 'sku', and 'price' before I can load them into the new system — please transform them."},{"title":"Standardizing webhook payloads","prompt":"Our webhook events have inconsistent field naming — some say 'customerId' and some say 'customer_id'. I want to normalize all 120 incoming records so they all use 'customer_id', and set a default value of 'unknown' for any records missing that field."}],"resultDescription":"An object containing the input records with keys renamed according to the provided mapping. Fields not listed in the rename map are passed through unchanged; optional key filtering retains only specified keys; defaults are applied where values are missing.","failureModes":["Missing required 'records' field returns validation error","Records array exceeding 500 items may be rejected or truncated","Invalid rename mapping (non-string keys or values) may cause transformation errors","Payment failure via x402 protocol results in 402 response before processing","Malformed JSON in records array causes parse errors"],"whenToPreferThis":"Choose this endpoint when you need a cheap, stateless, pay-per-call utility to batch-rename fields across up to 500 JSON records without standing up your own transformation infrastructure. Ideal for lightweight ETL, schema normalization between services, or quick field remapping in an agentic pipeline where spinning up a full data-processing service is overkill.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:54.609Z","isFirstParty":false,"canonicalSlug":"one-engine-records-rename-639db92e"}