cURL
curl --request POST \ --url https://sontairo.com/api/cron-jobs \ --header 'Content-Type: application/json' \ --data ' { "workspaceId": "<string>", "name": "<string>", "schedule": "<string>", "prompt": "<string>", "projectId": "<string>", "agentId": "<string>", "description": "<string>", "timezone": "UTC" } '
{ "data": { "id": "<string>", "workspaceId": "<string>", "projectId": "<string>", "name": "<string>", "description": "<string>", "schedule": "<string>", "prompt": "<string>", "timezone": "<string>", "isActive": true, "agentId": "<string>", "agent": { "id": "<string>", "name": "<string>" }, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } }
Schedule an agent to run on a recurring basis.
1 - 100
Cron expression (e.g. 0 9 * * *)
Task instruction for each run
1 - 10000
Agent to run
500
50
Cron job created
Show child attributes