post-trigger-body-passthrough.json 677 B

123456789101112131415161718
  1. {
  2. "name": "post-trigger-body-passthrough",
  3. "nodes": [
  4. {"id": "n1", "name": "Webhook", "type": "post-trigger", "position": {"x": 0, "y": 0}, "config": {}},
  5. {"id": "n2", "name": "Respond", "type": "respond-to-webhook", "position": {"x": 0, "y": 100},
  6. "config": {"status": 200, "bodySource": "input", "bodyField": "data.body"}}
  7. ],
  8. "connections": [
  9. {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "n2", "targetInput": "data"}
  10. ],
  11. "http": {
  12. "method": "POST",
  13. "path": "/webhook/{workflowId}",
  14. "body": {"greeting": "hello-from-test"},
  15. "expectStatus": 200,
  16. "expectBodyContains": ["\"greeting\":\"hello-from-test\""]
  17. }
  18. }