curl --request GET \
--url https://{organization}.rescueconsole.com/api/shifts/bookings/facets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/shifts/bookings/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/bookings/facets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"total_hours": 123,
"signed_hours": 123,
"facets": {
"status": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"signed_off": [
{
"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)"
}Count sign-ups
How many sign-ups match, by status and by whether their hours are signed off, with the hours logged and the hours signed off. Takes the filters of List sign-ups. Needs read on Shifts. Without read on People, total, total_hours and signed_hours count only the sign-ups of the person who created the key.
curl --request GET \
--url https://{organization}.rescueconsole.com/api/shifts/bookings/facets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/shifts/bookings/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/bookings/facets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"total_hours": 123,
"signed_hours": 123,
"facets": {
"status": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"signed_off": [
{
"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 or more of booked, cancellation_requested, cancelled, attended, no_show, separated by commas. Without it, every status but cancelled.
The sign-ups of one person (not the ones they accompany).
The sign-ups on one shift.
The sign-ups for one role.
The sign-ups on shifts at one location.
Sign-ups that end on or after this date, or date and time.
Sign-ups that start on or before this date, or date and time.
false for the hours still waiting to be signed off.
true, false