cURL
curl --request POST \ --url https://api.example.com/workflows \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "payload": "<string>", "kind": "<string>", "interval": 123, "max_consecutive_job_failures_allowed": 123 } '
{ "id": "<string>" }
curl -X POST https://api.chronoverse.com/workflows \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "Daily Data Sync", "payload": "{\"source\":\"database\",\"destination\":\"s3\"}", "kind": "scheduled", "interval": 1440, "max_consecutive_job_failures_allowed": 3 }'
{ "id": "wf_1234567890abcdef" }