Skip to main content
POST
Create heartbeat

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Scopes

site:manage-heartbeats

Allow members to manage heartbeats

Path Parameters

organization
string
required

The organization slug

server
integer
required

The server ID

site
integer
required

The site ID

Body

application/json
name
string
required

The name of the heartbeat.

Maximum string length: 255
Example:

"My Heartbeat"

grace_period
enum<integer>
required

The duration (in minutes) after which a heartbeat is considered missing.

Available options:
1,
2,
5,
10,
30,
60
Example:

2

frequency
enum<integer>
required

The interval (in minutes) at which the client is expected to send a ping.

Available options:
1,
5,
10,
30,
60,
1440,
10080,
312480,
-1
Example:

1

custom_frequency
string

A cron expression representing the custom frequency at which the client is expected to send a ping, if the frequency is set to -1.

Example:

"* * * * *"

Response

HeartbeatResource

data
HeartbeatResource · object
required