Count schedules
curl --request GET \
--url https://{organization}.rescueconsole.com/api/shifts/schedules/facets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/shifts/schedules/facets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/shifts/schedules/facets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"facets": {
"status": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"event_kind": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
]
}
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Shift schedules
Count schedules
How many schedules match, counted by status and by kind. Takes the filters of List schedules. Each group is counted with its own filter left out, so a count says how many you would get by picking that value instead. Schedules with no kind are counted under an empty value, labelled Not set, when there are any. Needs read on Shifts.
GET
/
api
/
shifts
/
schedules
/
facets
Count schedules
curl --request GET \
--url https://{organization}.rescueconsole.com/api/shifts/schedules/facets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/shifts/schedules/facets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/shifts/schedules/facets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"facets": {
"status": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"event_kind": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
]
}
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Authorizations
An API key from Settings, API keys. It starts with rc_live_.
Query Parameters
One status. A draft schedule is not shown on the calendar.
Available options:
draft, scheduled, active, completed, cancelled One kind.
Available options:
adoption, fundraiser, clinic, transport, training, meeting, events, other Schedules at one location.
Schedules that start on or after this date, or date and time.
Schedules that start on or before this date, or date and time.
The name contains this text.
The description contains this text.
Available options:
yes, no Schedules that end on or after this.
Schedules that end on or before this.