Data Transform
Deep set by path API
Immutably sets a value at a dot+bracket path, auto-creating intermediate objects/arrays, and returns a new document. Answers 'How do I set a nested value, creating parents as needed?', 'How do I update deep JSON without mutating the original?'.
Price$0.01per request
MethodPOST
Route/v1/data-transform/deep-set
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
data-transformdeep-setjsonpathnestedimmutablewrangle
API URL
Integration docshttps://x402.hexl.dev/v1/data-transform/deep-setExample request
{
"object": {
"a": {
"b": 1
}
},
"path": "a.c[0]",
"value": "x"
}Example response
{
"path": "a.c[0]",
"result": {
"a": {
"b": 1,
"c": [
"x"
]
}
}
}Input schema
{
"type": "object",
"required": [
"path",
"value"
],
"properties": {
"object": {
"type": "object",
"examples": [
{
"a": {
"b": 1
}
}
]
},
"path": {
"type": "string",
"examples": [
"a.c[0]"
]
},
"value": {
"type": "string",
"examples": [
"x"
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}