Summary
Merge Data
Description
Merge data into a single object
Route
No Northbound API Available
Roles
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
data_to_merge |
array |
yes |
Data to be merged |
Copied to Clipboard
{
"data_to_merge": [
{
"key": "mergedKey2",
"value": {
"task": "static",
"variable": "mergedKeyValue"
}
},
{
"key": "mergedKey2",
"value": {
"task": "static",
"variable": "mergedKeyValue"
}
},
{
"key": "mergedKey1",
"value": {
"task": "static",
"variable": "mergedKeyValue"
}
},
{
"key": "mergedKey2",
"value": {
"task": "static",
"variable": "mergedKeyValue"
}
},
{
"key": "mergedKey1",
"value": {
"task": "static",
"variable": "mergedKeyValue"
}
}
]
}
Copied to Clipboard
{
"type": "object",
"properties": {
"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": [
"mergedKeyValue"
]
}
}
}
}
}
}
},
"required": [
"data_to_merge"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
merged_object |
object |
Merged Data Object |
Copied to Clipboard
{
"mergedKey1": "mergedKey1Value",
"mergedKey2": "mergedKey2Value"
}
Copied to Clipboard
{
"title": "merged_object",
"type": "object",
"properties": {},
"examples": [
{
"mergedKey1": "mergedKey1Value",
"mergedKey2": "mergedKey2Value"
}
]
}