v2

latestOpenAPI 3.0.02026-07-261859071.2 MB
Heartbeats

Update a heartbeat check

Updates a Heartbeat check.

put/v1/checks/heartbeat/{id}

Path parameters

idstring required

Query parameters

autoAssignAlertsboolean

Determines whether a new check will automatically be added as a subscriber to all existing alert channels when it gets created.

Determines whether a new check will automatically be added as a subscriber to all existing alert channels when it gets created.

Headers

x-checkly-accountstring

Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general

Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general

Request body

namestring

The name of the check.

activatedboolean

Determines if the check is running or not.

mutedboolean

Determines if any notifications will be send out when a check fails and/or recovers.

doubleCheckboolean

[Deprecated] Retry failed check runs. This property is deprecated, and retryStrategy can be used instead.

shouldFailboolean

Allows to invert the behaviour of when a check is considered to fail. Allows for validating error status like 404.

locationsModel154[] nullable

An array of one or more data center locations where to run this check.

tagsstring[]

Tags for organizing and filtering checks.

useGlobalAlertSettingsboolean

When true, the account level alert setting will be used, not the alert setting defined on this check.

groupIdnumber nullable

The id of the check group this check is part of.

groupOrdernumber nullable

The position of this check in a check group. It determines in what order checks are run when a group is triggered from the API or from CI/CD.

runtimeId'2026.04' | '2025.04' | '2024.09' | '2024.02' | '2023.09' | '2023.02' | '2022.10' nullable

The runtime version, i.e. fixed set of runtime dependencies, used to execute this check.

runParallelboolean

When true, the check will run in parallel in all selected locations.

descriptionstring nullable

A description of the check.

frequencyinteger

How often the check should run in minutes.

frequencyOffsetinteger
requestCheckRequest
scriptstring required
scriptPathstring nullable

Path of the script in the runtime.

sslCheckDomainstring
setupSnippetIdnumber nullable

An ID reference to a snippet to use in the setup phase of an API check.

tearDownSnippetIdnumber nullable

An ID reference to a snippet to use in the teardown phase of an API check.

localSetupScriptstring nullable

A valid piece of Node.js code to run in the setup phase.

localTearDownScriptstring nullable

A valid piece of Node.js code to run in the teardown phase.

degradedResponseTimenumber nullable

The response time in milliseconds where a check should be considered degraded.

maxResponseTimenumber nullable

The response time in milliseconds where a check should be considered failing.

Example request

{
  "name": "Check",
  "locations": [
    "us-east-1",
    "eu-central-1"
  ],
  "tags": [
    "production"
  ],
  "alertChannelSubscriptions": [],
  "environmentVariables": [
    {
      "key": "API_KEY"
    }
  ]
}

Response

Successful

idstring
namestring required

The name of the check.

activatedboolean

Determines if the check is running or not.

mutedboolean

Determines if any notifications will be send out when a check fails and/or recovers.

tagsstring[]

Tags for organizing and filtering checks.

useGlobalAlertSettingsboolean

When true, the account level alert setting will be used, not the alert setting defined on this check.

runParallelboolean

When true, the check will run in parallel in all selected locations.

descriptionstring nullable

A description of the check.

checkType'HEARTBEAT'
created_atstring date
updated_atstring date-time nullable

Example response

{
  "id": "d432cf89-010b-4b12-8150-958c8eb1d5ca",
  "name": "Check",
  "tags": [
    "production"
  ],
  "heartbeat": {
    "pingUrl": "https://ping.checklyhq.com/22868839-8450-4010-9241-1ea83a2e425f"
  },
  "alertChannels": {
    "sms": [
      {
        "number": "+549110000000",
        "name": "SMS Alert"
      }
    ]
  }
}