How to Programmatically Create Sources via Rest API for Automated Webhook Tests?

This topic was automatically generated from Slack. You can find the original thread here.

Hello :wave:
Can someone point to example(s) of how to programmatically create sources via Rest API? My usecase to catch webhooks in a few automated tests, and would rather create/delete per test run. Looking at the docs it seems like I need to create a component with some required fields (i.e. component_id or some others), but not exactly sure why or what else to do, so some examples would be nice. Also I’d prefer the API over the CLI.

Which documents did you look at?

It sounds like you need to create a custom source which feeds a WF. The source can have required props/fields