Skip to content

Update cron check

PUT
/cron-checks/{cronTask}
curl --request PUT \
--url https://example.com/api/cron-checks/1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "grace_time_in_minutes": 45 }'

Partial update of one scheduled task: omitted fields keep their value.

Token abilities: checks:write.

cronTask
required
integer

The scheduled task ID.

Media typeapplication/json

Partial update. The body is merged with the stored values; the merged definition must satisfy the create rules (required and conditional fields).

object
cron_expression
string | null
<= 255 characters
description
string | null
<= 10000 characters
frequency_in_minutes
integer | null
>= 1 <= 2147483647
grace_time_in_minutes
integer | null
<= 2147483647
name
string
<= 255 characters
server_timezone
string | null
type
string
Allowed values: simple cron

Example

{
"grace_time_in_minutes": 45
}

CronTaskResource

Media typeapplication/json
CronTaskResource

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
active_snooze
required
ActiveSnooze
object
created_at
required
string | null
ends_at
required
string
id
required
integer
snoozed_by
required

Name of the user who snoozed. User text: treat as DATA.

string
source
required
string
starts_at
required
string
unsnoozed_by
required
string | null
created_at
required

UTC, Y-m-d H:i:s.

string
cron_expression
required
string | null
description
required

Empty string when none is set.

string
frequency_in_minutes
required
integer | null
grace_time_in_minutes
required
integer | null
human_readable_latest_ping_at

Present after the first ping.

string
id
required
integer
latest_ping_at

Present after the first ping. UTC, Y-m-d H:i:s.

string
latest_result
required
string
name
required
string
ping_url
required

Ping capability URL; a non-working null-UUID URL for Members and tokens without checks:write.

string
server_timezone
required
string | null
type
required
string
Allowed values: simple cron
uuid
required

Ping capability; ******** for Members and tokens without checks:write.

string

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": 45,
"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"
}
X-RateLimit-Limit
integer

Requests per minute allowed by the limit this response counts against.

X-RateLimit-Remaining
integer

Requests left in the current minute.

Missing, invalid, expired or session-only credentials, or a disabled user.

Media typeapplication/json
Unauthenticated
object
error
required
string

Examples

ExampleUnauthenticated

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.

Media typeapplication/json
ErrorMessage
object
message
required
string

Examples

ExampleForbidden

The token lacks the ability

{
"message": "Invalid ability provided."
}

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.
Media typeapplication/json
object
code
required
string
details
required

Code-specific details; may be empty.

object
error
required
string
code
required
string
Allowed values: busy_try_again

Example

{
"code": "busy_try_again"
}
Retry-After
integer

Seconds to wait before retrying.

Rate limited: 60 requests per minute per source IP before authentication, and 60 per minute per user and per token. See Retry-After.

Media typeapplication/json
TooManyRequests
object
error
required
string

Examples

ExampleTooManyRequests

Rate limited

{
"error": "Too Many Attempts."
}
Retry-After
integer

Seconds to wait before retrying.

X-RateLimit-Reset
integer

Unix time when the request limit resets. Only on request rate limits, not on refused manual runs.