List Schedule Updates
curl --request GET \
--url http://localhost:8001/api/schedules/{schedule}/updatesimport requests
url = "http://localhost:8001/api/schedules/{schedule}/updates"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8001/api/schedules/{schedule}/updates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8001",
CURLOPT_URL => "http://localhost:8001/api/schedules/{schedule}/updates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8001/api/schedules/{schedule}/updates"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8001/api/schedules/{schedule}/updates")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8001/api/schedules/{schedule}/updates")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"type": "updates",
"attributes": {
"id": 123,
"updateable_id": 123,
"updateable_type": "<string>",
"message": "<string>",
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
},
"status": {
"value": 123
}
},
"relationships": {
"incident": {
"data": {
"type": "incidents",
"id": "<string>"
}
},
"schedule": {
"data": {
"type": "schedules",
"id": "<string>"
}
}
}
}
],
"links": {
"first": "<string>",
"last": "<string>",
"prev": "<string>",
"next": "<string>"
},
"meta": {
"current_page": 2,
"from": 2,
"path": "<string>",
"per_page": 1,
"to": 2
},
"included": [
{
"id": "<string>",
"type": "incidents",
"attributes": {
"id": 123,
"guid": "<string>",
"name": "<string>",
"message": "<string>",
"stickied": true,
"notifications": 123,
"status": {
"human": "<string>",
"value": "<string>"
},
"occurred": {
"human": "<string>",
"string": "<string>"
},
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
},
"meta": [
"<unknown>"
],
"components_count": "<string>"
},
"relationships": {
"components": {
"data": [
{
"type": "components",
"id": "<string>"
}
]
},
"updates": {
"data": [
{
"type": "updates",
"id": "<string>"
}
]
},
"user": {
"data": {
"type": "<string>",
"id": "<string>"
}
}
}
}
]
}{
"message": "<string>"
}Schedule Updates
List Schedule Updates
GET
/
schedules
/
{schedule}
/
updates
List Schedule Updates
curl --request GET \
--url http://localhost:8001/api/schedules/{schedule}/updatesimport requests
url = "http://localhost:8001/api/schedules/{schedule}/updates"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8001/api/schedules/{schedule}/updates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8001",
CURLOPT_URL => "http://localhost:8001/api/schedules/{schedule}/updates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8001/api/schedules/{schedule}/updates"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8001/api/schedules/{schedule}/updates")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8001/api/schedules/{schedule}/updates")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"type": "updates",
"attributes": {
"id": 123,
"updateable_id": 123,
"updateable_type": "<string>",
"message": "<string>",
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
},
"status": {
"value": 123
}
},
"relationships": {
"incident": {
"data": {
"type": "incidents",
"id": "<string>"
}
},
"schedule": {
"data": {
"type": "schedules",
"id": "<string>"
}
}
}
}
],
"links": {
"first": "<string>",
"last": "<string>",
"prev": "<string>",
"next": "<string>"
},
"meta": {
"current_page": 2,
"from": 2,
"path": "<string>",
"per_page": 1,
"to": 2
},
"included": [
{
"id": "<string>",
"type": "incidents",
"attributes": {
"id": 123,
"guid": "<string>",
"name": "<string>",
"message": "<string>",
"stickied": true,
"notifications": 123,
"status": {
"human": "<string>",
"value": "<string>"
},
"occurred": {
"human": "<string>",
"string": "<string>"
},
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
},
"meta": [
"<unknown>"
],
"components_count": "<string>"
},
"relationships": {
"components": {
"data": [
{
"type": "components",
"id": "<string>"
}
]
},
"updates": {
"data": [
{
"type": "updates",
"id": "<string>"
}
]
},
"user": {
"data": {
"type": "<string>",
"id": "<string>"
}
}
}
}
]
}{
"message": "<string>"
}Path Parameters
The schedule ID
Query Parameters
How many items to show per page.
Which page to show.
Available options:
created_at, -created_at Available options:
schedule, scheduleCount, scheduleExists ⌘I