Data Transform
3-way object merge API
Performs a git-style 3-way deep merge of two edits over a common base, auto-merging non-conflicting changes and listing conflicts where both sides changed a path differently. Answers 'How do I merge two concurrent edits to a config?', 'Where do ours/theirs conflict against the base?'.
Price$0.03per request
MethodPOST
Route/v1/data-transform/three-way-merge
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
data-transformthree-way-mergemergeconflictjsondiff3wrangle
API URL
Integration docshttps://x402.hexl.dev/v1/data-transform/three-way-mergeExample request
{
"base": {
"a": 1,
"b": 2,
"c": 3
},
"ours": {
"a": 10,
"b": 2,
"c": 3
},
"theirs": {
"a": 1,
"b": 2,
"c": 30
}
}Example response
{
"merged": {
"a": 10,
"b": 2,
"c": 30
},
"conflicts": [],
"clean": true
}Input schema
{
"type": "object",
"required": [
"base",
"ours",
"theirs"
],
"properties": {
"base": {
"type": "object",
"examples": [
{
"a": 1,
"b": 2,
"c": 3
}
]
},
"ours": {
"type": "object",
"examples": [
{
"a": 10,
"b": 2,
"c": 3
}
]
},
"theirs": {
"type": "object",
"examples": [
{
"a": 1,
"b": 2,
"c": 30
}
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}