agents.writerslogic.com/api/v1/config-migration
Applies a declared mapping (from pointer, to pointer, optional transform such as string-to-number or a value map) to a v1 JSON config, carries over unmapped keys the v2 schema declares, fills schema defaults, validates the result against the v2 JSON Schema 2020-12 and returns the migrated config plus three exact lists: dropped (v1 values that landed nowhere, with their JSON pointers), defaulted (v
POST
https://agents.writerslogic.com/api/v1/config-migrationUptimeNot checked yet
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agents.writerslogic.com/api/v1/config-migration", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"v1":{"name":"x","debug":"yes","server":{"host":"db1","port":"5432","legacy_ssl":true}},"mapping":[{"to":"/database/host","from":"/server/host"},{"to":"/database/port","from":"/server/port","transform":"string-to-number"}],"v2Schema":{"type":"object","required":["database"],"properties":{"name":{"type":"string"},"database":{"type":"object","required":["host","port"],"properties":{"host":{"type":"),
});
console.log(await res.json());Example input
{"v1":{"name":"x","debug":"yes","server":{"host":"db1","port":"5432","legacy_ssl":true}},"mapping":[{"to":"/database/host","from":"/server/host"},{"to":"/database/port","from":"/server/port","transform":"string-to-number"}],"v2Schema":{"type":"object","required":["database"],"properties":{"name":{"type":"string"},"database":{"type":"object","required":["host","port"],"properties":{"host":{"type":"