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.

locationsstring[] 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' | 'null' 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.

checkType'HEARTBEAT'
frequency0 | 1 | 2 | 5 | 10 | 15 | 30 | 60 | 120 | 180 | 360 | 720 | 1440

How often the check should run in minutes.

frequencyOffsetinteger
requestobject nullable
scriptstring nullable
scriptPathstring nullable

Path of the script in the runtime.

sslCheckDomainstring nullable
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-time
updated_atstring date-time nullable

Example response

{
  "alertChannels": {
    "sms": [
      {
        "number": "+549110000000",
        "name": "SMS Alert"
      }
    ]
  }
}

Changes

Changed in 2 of the 4 revisions of this API.14446

  • 87d29dc7b4fe14442See the full diff
    • request body became required

      request-body-became-required

    • request property was restricted to a list of enum values

      request-property-became-enum

    • the // request property's minLength was increased from 0 to 1

      request-property-min-length-increased

    • the request property's minLength was increased from 0 to 1

      request-property-min-length-increased

    • the request property's minLength was increased from 0 to 1

      request-property-min-length-increased

    • the / request property's minLength was increased from 0 to 1

      request-property-min-length-increased

    • the / request property's minLength was increased from 0 to 1

      request-property-min-length-increased

    • the // request property type changed from number to integer

      request-property-type-changed

    • the // request property type changed from number to integer

      request-property-type-changed

    • the // request property type changed from number to integer

      request-property-type-changed

    • the // request property type changed from number to integer

      request-property-type-changed

    • the // request property type changed from number to integer

      request-property-type-changed

    • the / request property format changed from no format to uuid

      request-property-type-changed

    • the response's property format changed from date to date-time for status

      response-property-type-changed

    • removed the optional property from the response with the status

      response-optional-property-removed

    • removed the optional property from the response with the status

      response-optional-property-removed

    • removed the optional property from the response with the status

      response-optional-property-removed

    • removed the optional property from the response with the status

      response-optional-property-removed

    • added the new optional request property

      new-optional-request-property

    • the request property // became nullable

      request-property-became-nullable

    • the request property became nullable

      request-property-became-nullable

    • the request property became nullable

      request-property-became-nullable

    • the request property became nullable

      request-property-became-nullable

    • the request property became optional

      request-property-became-optional

    • the request property default value true was removed

      request-property-default-value-removed

    • the request property default value true was removed

      request-property-default-value-removed

    • the request property default value {"escalationType":"RUN_BASED","runBasedEscalation":{"failedRunThreshold":1},"reminders":{"amount":0,"interval":5},"parallelRunFailureThreshold":{"enabled":false,"percentage":10}} was removed

      request-property-default-value-removed

    • the request property default value 0 was removed

      request-property-default-value-removed

    • the request property default value 10000 was removed

      request-property-default-value-removed

    • the request property default value true was removed

      request-property-default-value-removed

    • the request property default value false was removed

      request-property-default-value-removed

    • the request property default value RUN_BASED was removed

      request-property-default-value-removed

    • the request property default value 10 was removed

      request-property-default-value-removed

    • the request property default value 5 was removed

      request-property-default-value-removed

    • the request property default value false was removed

      request-property-default-value-removed

    • the request property default value 20000 was removed

      request-property-default-value-removed

    • the request property default value false was removed

      request-property-default-value-removed

    • the request property default value 10 was removed

      request-property-default-value-removed

    • the request property default value false was removed

      request-property-default-value-removed

    • the request property default value false was removed

      request-property-default-value-removed

    • the request property default value false was removed

      request-property-default-value-removed

    • the request property default value true was removed

      request-property-default-value-removed

    • added the new 0.00 enum value to the request property

      request-property-enum-value-added

    • added the new 1.00 enum value to the request property

      request-property-enum-value-added

    • added the new 10.00 enum value to the request property

      request-property-enum-value-added

    • added the new 120.00 enum value to the request property

      request-property-enum-value-added

    • added the new 1440.00 enum value to the request property

      request-property-enum-value-added

    • added the new 15.00 enum value to the request property

      request-property-enum-value-added

    • added the new 180.00 enum value to the request property

      request-property-enum-value-added

    • added the new 2.00 enum value to the request property

      request-property-enum-value-added

    • added the new 30.00 enum value to the request property

      request-property-enum-value-added

    • added the new 360.00 enum value to the request property

      request-property-enum-value-added

    • added the new 5.00 enum value to the request property

      request-property-enum-value-added

    • added the new 60.00 enum value to the request property

      request-property-enum-value-added

    • added the new 720.00 enum value to the request property

      request-property-enum-value-added

    • added the new undefined enum value to the request property

      request-property-enum-value-added

    • the request property's maxLength was increased from 500 to 510

      request-property-max-length-increased

    • added the non-success response with the status

      response-non-success-status-added

    • added the non-success response with the status

      response-non-success-status-added

    • added the non-success response with the status

      response-non-success-status-added

    This revision also has 566 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the optional property to the response with the status

      response-optional-property-added

    • added the optional property to the response with the status

      response-optional-property-added

    • added the optional property to the response with the status

      response-optional-property-added

    • added the optional property to the response with the status

      response-optional-property-added