List cancellation requests
curl --request GET \
--url https://{organization}.rescueconsole.com/api/shifts/bookings/{id}/cancellation-requests \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/shifts/bookings/{id}/cancellation-requests', 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/{id}/cancellation-requests"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"booking_id": "<string>",
"requested_at": "2023-11-07T05:31:56Z",
"decision": "released",
"requested_by": "<string>",
"reason": "<string>",
"decided_by": "<string>",
"decided_at": "2023-11-07T05:31:56Z",
"decision_notes": "<string>"
}
],
"asked": 123,
"refused": 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 bookings
List cancellation requests
Every time the volunteer asked to be let off this sign-up, oldest first, and the answer each got. Needs read on Shifts. A key with read on People reads any sign-up’s. A key without it reads only sign-ups the person who created the key is on, and gets 404 for any other.
GET
/
api
/
shifts
/
bookings
/
{id}
/
cancellation-requests
List cancellation requests
curl --request GET \
--url https://{organization}.rescueconsole.com/api/shifts/bookings/{id}/cancellation-requests \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/shifts/bookings/{id}/cancellation-requests', 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/{id}/cancellation-requests"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"booking_id": "<string>",
"requested_at": "2023-11-07T05:31:56Z",
"decision": "released",
"requested_by": "<string>",
"reason": "<string>",
"decided_by": "<string>",
"decided_at": "2023-11-07T05:31:56Z",
"decision_notes": "<string>"
}
],
"asked": 123,
"refused": 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_.
Path Parameters
The sign-up's ID.