Heartbeats: Update
This documentation entry provides a clear and detailed guide on how to update an existing heartbeat monitor using the API, including the necessary parameters, headers, and expected response.
Endpoint
POST /api/heartbeats/{heartbeat_id}
/api/heartbeats/{heartbeat_id}Update an existing heartbeat monitor by specifying its unique identifier.
Request
HTTP Request
POST https://uptimekeep.com/api/heartbeats/{heartbeat_id}Replace {heartbeat_id} with the ID of the heartbeat monitor you wish to update.
Headers
Authorization
String
Bearer token for API authentication.
Content-Type
String
Must be set to multipart/form-data for file uploads.
Parameters
name
String
No
Name of the heartbeat monitor.
run_interval
Integer
No
The expected interval between runs.
run_interval_type
String
No
Type of interval. Allowed values: seconds, minutes, hours, days.
run_interval_grace
Integer
No
Grace period allowed after the expected interval.
run_interval_grace_type
String
No
Type of grace period. Allowed values: seconds, minutes, hours, days.
is_ok_notifications
Array
No
Array of notification handler IDs for successful checks.
is_enabled
Boolean
No
Enable or disable the heartbeat monitor.
Example of a request:
Response
A successful response returns a JSON object containing the unique identifier of the updated heartbeat monitor.
Response Example
Fields
Data Object
id
Integer
Unique identifier for the updated monitor.
Errors
If the request fails, the API will return an error message with an appropriate HTTP status code, such as 400 Bad Request if required parameters are missing or invalid, or 404 Not Found if the heartbeat monitor ID does not exist.
Last updated