cURL
curl --request PATCH \ --url https://sontairo.com/api/cron-jobs/{id} \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "description": "<string>", "agentId": "<string>", "schedule": "<string>", "prompt": "<string>", "timezone": "<string>", "isActive": true } '
{ "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" } }
Update a cron job’s configuration or toggle it on/off.
1 - 100
500
1 - 10000
50
Cron job updated
Show child attributes