Set a monitoring row's schedule
curl --request PUT \
--url https://api.statisfy.com/v1/integrations/monitoring/{source}/{subtype}/schedule \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"schedules": [
{
"cadence": "<string>",
"subtype": "<string>",
"day": 3,
"enabled": true,
"hour": 11,
"minute": 29,
"timezone": "<string>",
"week_start_day": 3
}
]
}
'import requests
url = "https://api.statisfy.com/v1/integrations/monitoring/{source}/{subtype}/schedule"
payload = { "schedules": [
{
"cadence": "<string>",
"subtype": "<string>",
"day": 3,
"enabled": True,
"hour": 11,
"minute": 29,
"timezone": "<string>",
"week_start_day": 3
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
schedules: [
{
cadence: '<string>',
subtype: '<string>',
day: 3,
enabled: true,
hour: 11,
minute: 29,
timezone: '<string>',
week_start_day: 3
}
]
})
};
fetch('https://api.statisfy.com/v1/integrations/monitoring/{source}/{subtype}/schedule', 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.statisfy.com/v1/integrations/monitoring/{source}/{subtype}/schedule",
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([
'schedules' => [
[
'cadence' => '<string>',
'subtype' => '<string>',
'day' => 3,
'enabled' => true,
'hour' => 11,
'minute' => 29,
'timezone' => '<string>',
'week_start_day' => 3
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.statisfy.com/v1/integrations/monitoring/{source}/{subtype}/schedule"
payload := strings.NewReader("{\n \"schedules\": [\n {\n \"cadence\": \"<string>\",\n \"subtype\": \"<string>\",\n \"day\": 3,\n \"enabled\": true,\n \"hour\": 11,\n \"minute\": 29,\n \"timezone\": \"<string>\",\n \"week_start_day\": 3\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.statisfy.com/v1/integrations/monitoring/{source}/{subtype}/schedule")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"schedules\": [\n {\n \"cadence\": \"<string>\",\n \"subtype\": \"<string>\",\n \"day\": 3,\n \"enabled\": true,\n \"hour\": 11,\n \"minute\": 29,\n \"timezone\": \"<string>\",\n \"week_start_day\": 3\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/integrations/monitoring/{source}/{subtype}/schedule")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"schedules\": [\n {\n \"cadence\": \"<string>\",\n \"subtype\": \"<string>\",\n \"day\": 3,\n \"enabled\": true,\n \"hour\": 11,\n \"minute\": 29,\n \"timezone\": \"<string>\",\n \"week_start_day\": 3\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"schedules": [
{
"cadence": "<string>",
"day": 123,
"enabled": true,
"hour": 123,
"minute": 123,
"subtype": "<string>",
"timezone": "<string>",
"week_start_day": 123
}
]
}integrations
Set a monitoring row's schedule
Saves the workspace’s own schedule for the row (the db layer), as the page’s schedule editor does, for any source the table lists, scheduled or not. An entry whose subtype is not the row’s, or a cadence the source does not take, is a 422 and saves nothing. A (source, subtype) the monitoring table does not list is a 404.
PUT
/
v1
/
integrations
/
monitoring
/
{source}
/
{subtype}
/
schedule
Set a monitoring row's schedule
curl --request PUT \
--url https://api.statisfy.com/v1/integrations/monitoring/{source}/{subtype}/schedule \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"schedules": [
{
"cadence": "<string>",
"subtype": "<string>",
"day": 3,
"enabled": true,
"hour": 11,
"minute": 29,
"timezone": "<string>",
"week_start_day": 3
}
]
}
'import requests
url = "https://api.statisfy.com/v1/integrations/monitoring/{source}/{subtype}/schedule"
payload = { "schedules": [
{
"cadence": "<string>",
"subtype": "<string>",
"day": 3,
"enabled": True,
"hour": 11,
"minute": 29,
"timezone": "<string>",
"week_start_day": 3
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
schedules: [
{
cadence: '<string>',
subtype: '<string>',
day: 3,
enabled: true,
hour: 11,
minute: 29,
timezone: '<string>',
week_start_day: 3
}
]
})
};
fetch('https://api.statisfy.com/v1/integrations/monitoring/{source}/{subtype}/schedule', 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.statisfy.com/v1/integrations/monitoring/{source}/{subtype}/schedule",
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([
'schedules' => [
[
'cadence' => '<string>',
'subtype' => '<string>',
'day' => 3,
'enabled' => true,
'hour' => 11,
'minute' => 29,
'timezone' => '<string>',
'week_start_day' => 3
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.statisfy.com/v1/integrations/monitoring/{source}/{subtype}/schedule"
payload := strings.NewReader("{\n \"schedules\": [\n {\n \"cadence\": \"<string>\",\n \"subtype\": \"<string>\",\n \"day\": 3,\n \"enabled\": true,\n \"hour\": 11,\n \"minute\": 29,\n \"timezone\": \"<string>\",\n \"week_start_day\": 3\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.statisfy.com/v1/integrations/monitoring/{source}/{subtype}/schedule")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"schedules\": [\n {\n \"cadence\": \"<string>\",\n \"subtype\": \"<string>\",\n \"day\": 3,\n \"enabled\": true,\n \"hour\": 11,\n \"minute\": 29,\n \"timezone\": \"<string>\",\n \"week_start_day\": 3\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/integrations/monitoring/{source}/{subtype}/schedule")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"schedules\": [\n {\n \"cadence\": \"<string>\",\n \"subtype\": \"<string>\",\n \"day\": 3,\n \"enabled\": true,\n \"hour\": 11,\n \"minute\": 29,\n \"timezone\": \"<string>\",\n \"week_start_day\": 3\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"schedules": [
{
"cadence": "<string>",
"day": 123,
"enabled": true,
"hour": 123,
"minute": 123,
"subtype": "<string>",
"timezone": "<string>",
"week_start_day": 123
}
]
}Authorizations
An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.
Path Parameters
Body
application/json
Was this page helpful?