cURL
curl --request PATCH \ --url https://api.example.com/crons/{id}
{ "id": "<string>", "name": "<string>", "cron": "<string>", "url": "<string>", "method": "<string>", "headers": {}, "body": {}, "paused": true }
Update an existing cron
next_run_at
GET
POST
DELETE
true
false
curl -X PATCH https://app.cronapi.dev/api/v1/crons/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \ -H "Authorization: Bearer your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "cron": "0 */2 * * *", "paused": false }'
{ "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "user_id": "d4e5f6a7-b890-1234-cdef-567890abcdef", "name": "Health check", "cron": "0 */2 * * *", "url": "https://example.com/health", "method": "GET", "headers": {}, "body": {}, "paused": false, "next_run_at": "2026-04-15T16:00:00.000Z", "last_run_at": "2026-04-15T14:30:00.000Z", "created_at": "2026-04-12T10:30:00.000Z" }
{ "error": "Invalid cron expression" }