{"uid":"cap_NozmZwzFumO32w4bqG4gc","slug":"signaldesk-ai-json-key-rename-a3bd622d","name":"SignalDesk AI – JSON Key Rename","description":"Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.","url":"https://x402-agent.kariguetoazul.workers.dev/api/json/rename-key?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"type":"string","maxLength":128,"description":"Destination key."},"data":{"description":"JSON object."},"from":{"type":"string","maxLength":128,"description":"Source key."}}},"responseSchema":{"type":"json","example":{"data":{"new":1}}},"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_yjVpwzM9WYoE4Pn9ye5vC","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 specified key in a JSON object from one name to another, returning the modified object.","exampleAgentPrompt":"In my JSON object {\"old_name\": 1, \"b\": 2}, rename the key 'old_name' to 'new_name' and give me the updated object.","exampleUseCases":[{"title":"Normalize API response field names","prompt":"I'm getting JSON from a third-party API that uses camelCase like 'userId', but my database expects snake_case — can you rename the 'userId' key to 'user_id' in this object: {\"userId\": 42, \"email\": \"a@b.com\"}?"},{"title":"Fix legacy data key before storage","prompt":"Before I save this record to our system, I need to rename the 'cust_no' field to 'customer_id' in this JSON: {\"cust_no\": \"C-9921\", \"status\": \"active\"}."},{"title":"Reformat payload for downstream service","prompt":"Our downstream service expects a 'price' field but the upstream gives us 'cost' — can you rename 'cost' to 'price' in {\"cost\": 19.99, \"item\": \"widget\"} so I can forward it correctly?"}],"resultDescription":"Returns a JSON object identical to the input except the specified source key has been renamed to the destination key. For example, input {\"old\": 1} with from='old' and to='new' yields {\"new\": 1}.","failureModes":["Source key ('from') not found in the provided JSON object — returns an unchanged or error response","Input 'data' is not a valid JSON object (e.g. array or primitive) — likely returns an error","Missing required fields ('from', 'to', or 'data') — request validation error","Key name exceeds 128-character limit — rejected by schema validation","Payment not fulfilled (x402 payment required) — 402 response before processing"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, single-operation JSON key rename without setting up a full transformation pipeline or writing custom code. Ideal for agent workflows that receive JSON from one service and must reformat it for another, especially when the only structural change needed is a key rename. At $0.001 USDC per call, it is cost-effective for moderate-volume reshaping tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:42:05.054Z","isFirstParty":false,"canonicalSlug":"signaldesk-ai-json-key-rename-a3bd622d"}