{"uid":"cap_XLfp7vRkHXkRl4TJ-3zCS","slug":"delx-rename-key-78d76d65","name":"Delx Rename Key","description":"Rename a single object key. Call when you adapt agent field names between systems. Returns renamed object for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/rename-key","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"object":{"type":"object","description":"Input field: object."},"to_key":{"type":"string","description":"Input field: to key."},"from_key":{"type":"string","description":"Input field: from key."}}},"responseSchema":{"type":"json","example":{"object":{"id":1},"schema":"delx/util-rename-key/v1","renamed":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zOJOclsuw5DzRqIRwpB66","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Renames a single key in a JSON object, returning the object with the specified key replaced by a new name.","exampleAgentPrompt":"Take this JSON object {\"user_id\": 42, \"email\": \"a@b.com\"} and rename the key 'user_id' to 'userId' for me.","exampleUseCases":[{"title":"Normalize field names for downstream API","prompt":"I have a JSON object {\"first_name\": \"Alice\", \"last_name\": \"Smith\"} that I need to send to a service expecting camelCase — can you rename 'first_name' to 'firstName' in it?"},{"title":"Adapt agent pipeline field mismatch","prompt":"My data pipeline output uses 'ts' as the timestamp key but the next step expects 'timestamp' — rename 'ts' to 'timestamp' in this object: {\"ts\": \"2024-01-15T10:00:00Z\", \"value\": 99}."},{"title":"Standardize sensor data key labels","prompt":"This sensor reading came in with a key called 'temp_c' but our system needs it called 'temperature' — can you rename that key in {\"temp_c\": 23.5, \"humidity\": 60}?"}],"resultDescription":"Returns the input JSON object with the specified key renamed: the value is preserved unchanged, and the old key is removed while the new key holds the same value. The response is a local, first-party transformation with no external network calls.","failureModes":["Source key ('from_key') does not exist in the provided object — may return unchanged object or an error","Target key ('to_key') already exists in the object — potential key collision","Malformed or non-object input — likely returns a validation error","Empty object provided — operation succeeds but result is still empty"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, stateless, single-key rename on a JSON object without writing custom transformation code. Ideal for agent pipelines bridging two systems with mismatched field naming conventions. Prefer it over general-purpose code execution or full schema mapping tools when the task is simply renaming one key at a time at minimal cost ($0.001 USDC).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:39:54.467Z","isFirstParty":false}