Hi,
This cmd creates a Source on Pipedream (that runs a script every 15s):
pd deploy --run job.js --timer --frequency 15s
I want to replicate creating this Source via Pipedream API.
My “job.js” contains a script to run an HTTP request to my server, but it could be anything.
My current Pipedream API request to replicate that cmd looks like this but it doesn’t work:
POST → “https://api.pipedream.com/v1/sources”
body:
{
"component_url": "https://github.com/PipedreamHQ/pipedream/blob/master/components/schedule/schedule.app.mjs",
"name": "aaaa",
"configured_props": {
"timer": {
"cron": null,
"interval_seconds": 15
}
}
}
How can I run a “job.js” on schedule? Or, even better, how can I create a Pipedream job to run an HTTP request on schedule, all by making a Pipedream API request. I don’t want to use Pipedream’s UI to do it (I could), because I want to run this when deploying my application.
Thanks