Update Uptime Monitor
curl --request PUT \
--url https://api.getbluejay.ai/v1/uptime/monitors/{monitor_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <x-api-key>' \
--data '
{
"agent_id": 123,
"frequency": "<string>",
"active_window": {
"days": [],
"start_time": "<string>",
"end_time": "<string>",
"timezone": "<string>"
},
"checks": [
{}
],
"notifications": {},
"enabled": true,
"start_at": "<string>"
}
'import requests
url = "https://api.getbluejay.ai/v1/uptime/monitors/{monitor_id}"
payload = {
"agent_id": 123,
"frequency": "<string>",
"active_window": {
"days": [],
"start_time": "<string>",
"end_time": "<string>",
"timezone": "<string>"
},
"checks": [{}],
"notifications": {},
"enabled": True,
"start_at": "<string>"
}
headers = {
"X-API-Key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agent_id: 123,
frequency: '<string>',
active_window: {days: [], start_time: '<string>', end_time: '<string>', timezone: '<string>'},
checks: [{}],
notifications: {},
enabled: true,
start_at: '<string>'
})
};
fetch('https://api.getbluejay.ai/v1/uptime/monitors/{monitor_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.getbluejay.ai/v1/uptime/monitors/{monitor_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'agent_id' => 123,
'frequency' => '<string>',
'active_window' => [
'days' => [
],
'start_time' => '<string>',
'end_time' => '<string>',
'timezone' => '<string>'
],
'checks' => [
[
]
],
'notifications' => [
],
'enabled' => true,
'start_at' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.getbluejay.ai/v1/uptime/monitors/{monitor_id}"
payload := strings.NewReader("{\n \"agent_id\": 123,\n \"frequency\": \"<string>\",\n \"active_window\": {\n \"days\": [],\n \"start_time\": \"<string>\",\n \"end_time\": \"<string>\",\n \"timezone\": \"<string>\"\n },\n \"checks\": [\n {}\n ],\n \"notifications\": {},\n \"enabled\": true,\n \"start_at\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-API-Key", "<x-api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.getbluejay.ai/v1/uptime/monitors/{monitor_id}")
.header("X-API-Key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": 123,\n \"frequency\": \"<string>\",\n \"active_window\": {\n \"days\": [],\n \"start_time\": \"<string>\",\n \"end_time\": \"<string>\",\n \"timezone\": \"<string>\"\n },\n \"checks\": [\n {}\n ],\n \"notifications\": {},\n \"enabled\": true,\n \"start_at\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getbluejay.ai/v1/uptime/monitors/{monitor_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-API-Key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent_id\": 123,\n \"frequency\": \"<string>\",\n \"active_window\": {\n \"days\": [],\n \"start_time\": \"<string>\",\n \"end_time\": \"<string>\",\n \"timezone\": \"<string>\"\n },\n \"checks\": [\n {}\n ],\n \"notifications\": {},\n \"enabled\": true,\n \"start_at\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Uptime Monitors
Update Uptime Monitor
Update an uptime monitor. Partial update: only the fields you pass are changed.
PUT
/
v1
/
uptime
/
monitors
/
{monitor_id}
Update Uptime Monitor
curl --request PUT \
--url https://api.getbluejay.ai/v1/uptime/monitors/{monitor_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <x-api-key>' \
--data '
{
"agent_id": 123,
"frequency": "<string>",
"active_window": {
"days": [],
"start_time": "<string>",
"end_time": "<string>",
"timezone": "<string>"
},
"checks": [
{}
],
"notifications": {},
"enabled": true,
"start_at": "<string>"
}
'import requests
url = "https://api.getbluejay.ai/v1/uptime/monitors/{monitor_id}"
payload = {
"agent_id": 123,
"frequency": "<string>",
"active_window": {
"days": [],
"start_time": "<string>",
"end_time": "<string>",
"timezone": "<string>"
},
"checks": [{}],
"notifications": {},
"enabled": True,
"start_at": "<string>"
}
headers = {
"X-API-Key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agent_id: 123,
frequency: '<string>',
active_window: {days: [], start_time: '<string>', end_time: '<string>', timezone: '<string>'},
checks: [{}],
notifications: {},
enabled: true,
start_at: '<string>'
})
};
fetch('https://api.getbluejay.ai/v1/uptime/monitors/{monitor_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.getbluejay.ai/v1/uptime/monitors/{monitor_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'agent_id' => 123,
'frequency' => '<string>',
'active_window' => [
'days' => [
],
'start_time' => '<string>',
'end_time' => '<string>',
'timezone' => '<string>'
],
'checks' => [
[
]
],
'notifications' => [
],
'enabled' => true,
'start_at' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.getbluejay.ai/v1/uptime/monitors/{monitor_id}"
payload := strings.NewReader("{\n \"agent_id\": 123,\n \"frequency\": \"<string>\",\n \"active_window\": {\n \"days\": [],\n \"start_time\": \"<string>\",\n \"end_time\": \"<string>\",\n \"timezone\": \"<string>\"\n },\n \"checks\": [\n {}\n ],\n \"notifications\": {},\n \"enabled\": true,\n \"start_at\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-API-Key", "<x-api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.getbluejay.ai/v1/uptime/monitors/{monitor_id}")
.header("X-API-Key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": 123,\n \"frequency\": \"<string>\",\n \"active_window\": {\n \"days\": [],\n \"start_time\": \"<string>\",\n \"end_time\": \"<string>\",\n \"timezone\": \"<string>\"\n },\n \"checks\": [\n {}\n ],\n \"notifications\": {},\n \"enabled\": true,\n \"start_at\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getbluejay.ai/v1/uptime/monitors/{monitor_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-API-Key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent_id\": 123,\n \"frequency\": \"<string>\",\n \"active_window\": {\n \"days\": [],\n \"start_time\": \"<string>\",\n \"end_time\": \"<string>\",\n \"timezone\": \"<string>\"\n },\n \"checks\": [\n {}\n ],\n \"notifications\": {},\n \"enabled\": true,\n \"start_at\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}checks replaces the whole array, so include every check you want to keep — the template checks plus any custom-metric or digital-human entries. See Create Uptime Monitor for the check and notification shapes.
Changing checks or agent_id rebuilds the monitor’s backing simulation; notification and pause/resume edits do not.Path Parameters
Body
application/json
Days/hours the monitor may run, e.g. {"days": ["monday"], "start_time": "09:00", "end_time": "17:00", "timezone": "America/Los_Angeles"}. Null runs it around the clock.
Show child attributes
Show child attributes
ISO 8601 first-check time; defaults to now().
Response
Successful Response