[
{
"name": "SnazzyToCodeComponent",
"description": "This flow polls for persons and posts them on webhoo.site.",
"tenant": "string",
"graph": {
"nodes": [
[
{
"id": "step_1",
"componentId": "string",
"name": "snazzy adapter for oih",
"function": "getPersonsPolling",
"description": "New description in progress"
},
{
"id": "step_2",
"componentId": "string",
"name": "code_component",
"function": "execute",
"description": "",
"fields": {
"code": "function* run() {console.log('Calling external URL');yield request.post({uri: 'http://webhook.site/debc8244-3ca0-4449-af2b-e346c4f57b85', body: msg.body, json: true});}"
}
}
]
],
"edges": [
{
"id": "string",
"config": {
"condition": "string",
"mapper": {}
},
"source": "step_1",
"target": "step_2"
}
]
},
"type": "ordinary",
"cron": "* /2 * * * *",
"owners": [
{
"id": "string",
"type": "string"
}
]
}
]
curl --location --request PATCH 'https://api.platform.openintegrationhub.com/flows/bulk' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"name": "SnazzyToCodeComponent",
"description": "This flow polls for persons and posts them on webhoo.site.",
"tenant": "string",
"graph": {
"nodes": [
[
{
"id": "step_1",
"componentId": "string",
"name": "snazzy adapter for oih",
"function": "getPersonsPolling",
"description": "New description in progress"
},
{
"id": "step_2",
"componentId": "string",
"name": "code_component",
"function": "execute",
"description": "",
"fields": {
"code": "function* run() {console.log('\''Calling external URL'\'');yield request.post({uri: '\''http://webhook.site/debc8244-3ca0-4449-af2b-e346c4f57b85'\'', body: msg.body, json: true});}"
}
}
]
],
"edges": [
{
"id": "string",
"config": {
"condition": "string",
"mapper": {}
},
"source": "step_1",
"target": "step_2"
}
]
},
"type": "ordinary",
"cron": "* /2 * * * *",
"owners": [
{
"id": "string",
"type": "string"
}
]
}
]'
{
"data": [
{
"name": "SnazzyToCodeComponent",
"description": "This flow polls for persons and posts them on webhoo.site.",
"tenant": "string",
"graph": {
"nodes": [
[
{
"id": "step_1",
"componentId": "string",
"name": "snazzy adapter for oih",
"function": "getPersonsPolling",
"description": "New description in progress"
},
{
"id": "step_2",
"componentId": "string",
"name": "code_component",
"function": "execute",
"description": "",
"fields": {
"code": "function* run() {console.log('Calling external URL');yield request.post({uri: 'http://webhook.site/debc8244-3ca0-4449-af2b-e346c4f57b85', body: msg.body, json: true});}"
}
}
]
],
"edges": [
{
"id": "string",
"config": {
"condition": "string",
"mapper": {}
},
"source": "step_1",
"target": "step_2"
}
]
},
"type": "ordinary",
"cron": "* /2 * * * *",
"owners": [
{
"id": "string",
"type": "string"
}
],
"id": "string",
"status": "active",
"createdAt": "2019-07-30T12:52:45.957Z",
"updatedAt": "2019-07-30T12:52:45.957Z"
}
],
"meta": {}
}