Create a scheduled job
Stores name, expected interval, grace period, signing, group, client and metadata settings.
POST https://app.upfour.io/v1/heartbeats
Body
namestringrequired
Display name
In the app: Name
All other fields7 fields
client_iduuid · nullable
Create inside a client (agency mode)
In the app: Client
enable_signingboolean
expected_interval_secondsinteger
How often the job should check in
In the app: Expect a check-in every
grace_period_secondsinteger
Slack on top before the silence alerts
In the app: with a grace period of
heartbeat_group_iduuid · nullable
Optional folder
In the app: Group
metadatamap of stringmax 100 keyseach value max length 4096
On update, omitted or null leaves the stored metadata unchanged, {} removes all keys and any other object replaces them.
In the app: Metadata
signing_secretstring · nullable
With enable_signing and no secret, up4 generates one.
Returns
A successful request returns 201 with application/json.
Response fields 1 top-level fields
| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data | Heartbeat | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Heartbeat · 26 fields
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Errors
Only the errors this operation can return. Every error uses the same envelope.
| Status | Code | Meaning |
|---|---|---|
| 400 | bad_request | The request is malformed or fails validation. |
| 402 | payment_required | The account does not have the credit or plan required for this action. |
| 403 | permission_denied | The credentials do not permit this action. |
Every call can also return unauthorized (401), rate_limit_exceeded (429) or internal_error (500 / 502). See Responses and errors.