152 lines
2.8 KiB
JSON
152 lines
2.8 KiB
JSON
{
|
|
"nodes": [
|
|
{
|
|
"name": "On clicking 'execute'",
|
|
"type": "n8n-nodes-base.manualTrigger",
|
|
"position": [
|
|
250,
|
|
300
|
|
],
|
|
"parameters": {},
|
|
"typeVersion": 1
|
|
},
|
|
{
|
|
"name": "Customer Datastore",
|
|
"type": "n8n-nodes-base.n8nTrainingCustomerDatastore",
|
|
"position": [
|
|
450,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"operation": "getAllPeople",
|
|
"returnAll": true
|
|
},
|
|
"typeVersion": 1
|
|
},
|
|
{
|
|
"name": "SplitInBatches",
|
|
"type": "n8n-nodes-base.splitInBatches",
|
|
"position": [
|
|
650,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"options": {},
|
|
"batchSize": 1
|
|
},
|
|
"typeVersion": 1
|
|
},
|
|
{
|
|
"name": "HTTP Request",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"position": [
|
|
850,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"url": "https://jsonplaceholder.typicode.com/posts",
|
|
"options": {},
|
|
"requestMethod": "POST",
|
|
"bodyParametersUi": {
|
|
"parameter": [
|
|
{
|
|
"name": "id",
|
|
"value": "={{$json[\"id\"]}}"
|
|
},
|
|
{
|
|
"name": "name",
|
|
"value": "={{$json[\"name\"]}}"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"typeVersion": 1
|
|
},
|
|
{
|
|
"name": "Wait",
|
|
"type": "n8n-nodes-base.wait",
|
|
"position": [
|
|
950,
|
|
100
|
|
],
|
|
"webhookId": "b809abfb-8e02-4b31-90b9-0005be656312",
|
|
"parameters": {
|
|
"unit": "seconds",
|
|
"amount": 4
|
|
},
|
|
"typeVersion": 1
|
|
},
|
|
{
|
|
"name": "Replace Me",
|
|
"type": "n8n-nodes-base.noOp",
|
|
"position": [
|
|
1050,
|
|
300
|
|
],
|
|
"parameters": {},
|
|
"typeVersion": 1
|
|
}
|
|
],
|
|
"connections": {
|
|
"Wait": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "SplitInBatches",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"HTTP Request": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Replace Me",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Wait",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"SplitInBatches": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "HTTP Request",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Customer Datastore": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "SplitInBatches",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"On clicking 'execute'": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Customer Datastore",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
} |