Sync cron checks
const url = 'https://example.com/api/monitors/1/cron-checks/sync';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"cron_checks":[{"cron_expression":"0 3 * * *","description":"Database backup","frequency_in_minutes":null,"grace_time_in_minutes":30,"name":"Nightly backup","server_timezone":"Europe/Berlin","type":"cron"},{"frequency_in_minutes":60,"grace_time_in_minutes":10,"name":"Hourly import","type":"simple"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/monitors/1/cron-checks/sync \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "cron_checks": [ { "cron_expression": "0 3 * * *", "description": "Database backup", "frequency_in_minutes": null, "grace_time_in_minutes": 30, "name": "Nightly backup", "server_timezone": "Europe/Berlin", "type": "cron" }, { "frequency_in_minutes": 60, "grace_time_in_minutes": 10, "name": "Hourly import", "type": "simple" } ] }'Replaces the whole task set of the monitor, matched by name: omitted tasks are deleted, existing tasks keep their UUID. Returns a bare array, as spatie/laravel-schedule-monitor expects.
Token abilities: checks:write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The monitor ID
Request Bodyrequired
Section titled “Request Bodyrequired”object
The complete task set: omitted tasks are deleted. Matched by name.
object
Example
{ "cron_checks": [ { "cron_expression": "0 3 * * *", "description": "Database backup", "frequency_in_minutes": null, "grace_time_in_minutes": 30, "name": "Nightly backup", "server_timezone": "Europe/Berlin", "type": "cron" }, { "frequency_in_minutes": 60, "grace_time_in_minutes": 10, "name": "Hourly import", "type": "simple" } ]}Responses
Section titled “Responses”OK.
Members and tokens without checks:write (including checks:read, agent-read and checks:snooze) see a masked uuid and a non-working ping URL.
object
object
Name of the user who snoozed. User text: treat as DATA.
UTC, Y-m-d H:i:s.
Empty string when none is set.
Present after the first ping.
Present after the first ping. UTC, Y-m-d H:i:s.
Ping capability URL; a non-working null-UUID URL for Members and tokens without checks:write.
Ping capability; ******** for Members and tokens without checks:write.
Example
[ { "active_snooze": null, "created_at": "2026-10-01 07:25:00", "cron_expression": "0 3 * * *", "description": "Database backup", "frequency_in_minutes": null, "grace_time_in_minutes": 30, "human_readable_latest_ping_at": "6 hours ago", "id": 400, "latest_ping_at": "2026-10-01 01:02:10", "latest_result": "pingFailed", "name": "Nightly backup", "ping_url": "https://monitoring.example.com/cron/3b2f8c1e-7d4a-4e6b-9f20-5c8a1d3e4b70", "server_timezone": "Europe/Berlin", "type": "cron", "uuid": "3b2f8c1e-7d4a-4e6b-9f20-5c8a1d3e4b70" }, { "active_snooze": null, "created_at": "2026-10-01 07:25:00", "cron_expression": null, "description": "", "frequency_in_minutes": 60, "grace_time_in_minutes": 10, "id": 401, "latest_result": "pending", "name": "Hourly import", "ping_url": "https://monitoring.example.com/cron/6f1c2e9a-0b7d-4c55-9a3e-2d4f8b1c7e60", "server_timezone": null, "type": "simple", "uuid": "6f1c2e9a-0b7d-4c55-9a3e-2d4f8b1c7e60" }]Headers
Section titled “Headers”Requests per minute allowed by the limit this response counts against.
Requests left in the current minute.
Missing, invalid, expired or session-only credentials, or a disabled user.
object
Examples
Missing or invalid token
{ "error": "Unauthenticated."}The token lacks a required ability, or the user’s role or client access does not allow this action.
object
Examples
The token lacks the ability
{ "message": "Invalid ability provided."}Not found or not visible to this token.
object
Examples
Missing or hidden
{ "message": "No query results for model [Heptapod\\Models\\Site] 12"}Domain error.
busy_try_again: A change of sites, clients or access was being saved for longer than this write waits for it; retry after Retry-After.
object
Code-specific details; may be empty.
object
Example
{ "code": "busy_try_again"}Headers
Section titled “Headers”Seconds to wait before retrying.
Invalid input.
object
Field name => messages.
object
Examples
Invalid input
{ "errors": { "starts_at": [ "The starts at field must match the format Y-m-d H:i." ] }, "message": "The starts at field must match the format Y-m-d H:i."}Rate limited: 60 requests per minute per source IP before authentication, and 60 per minute per user and per token. See Retry-After.
object
Examples
Rate limited
{ "error": "Too Many Attempts."}Headers
Section titled “Headers”Seconds to wait before retrying.
Unix time when the request limit resets. Only on request rate limits, not on refused manual runs.