Summary
Deep Merge Data
Description
Merge data using extend
Route
No Northbound API Available
Roles
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
job_id |
string |
yes |
The Job ID |
data_to_merge |
object |
yes |
Data to be merged |
Copied to Clipboard
{
"job_id": "5cb7b531d06cceb89fd21b1c",
"data_to_merge": [
{
"key": "mergedKey2",
"value": {
"task": "job",
"variable": {
"c": "d"
}
}
},
{
"key": "mergedKey1",
"value": {
"task": "job",
"variable": {
"a": "b"
}
}
},
{
"key": "mergedKey1",
"value": {
"task": "job",
"variable": {
"a": "b"
}
}
},
{
"key": "mergedKey2",
"value": {
"task": "static",
"variable": {
"c": "d"
}
}
}
]
}
Copied to Clipboard
{
"type": "object",
"properties": {
"job_id": {
"$ref": "wfEngineCommon#/definitions/mongoObjectId"
},
"data_to_merge": {
"title": "data_to_merge",
"type": "array",
"minItems": 2,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"examples": [
"mergedKey1",
"mergedKey2"
]
},
"value": {
"type": "object",
"properties": {
"task": {
"type": "string",
"enum": [
"job",
"static"
]
},
"variable": {
"type": [
"string",
"array",
"boolean",
"number",
"object"
],
"examples": [
{
"a": "b"
},
{
"c": "d"
}
]
}
}
}
}
}
}
},
"required": [
"job_id",
"data_to_merge"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
merged_object |
object |
Merged Data Object |
Copied to Clipboard
{
"a": "b",
"c": "d"
}
Copied to Clipboard
{
"title": "merged_object",
"type": "object",
"properties": {},
"examples": [
{
"a": "b",
"c": "d"
}
]
}