Get location preferences
curl --request GET \
--url https://{organization}.rescueconsole.com/api/shifts/location-preferences \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/shifts/location-preferences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/shifts/location-preferences"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"person_id": "<string>",
"location_unit_ids": [
"<string>"
],
"locations": [
{
"id": "<string>",
"name": "<string>"
}
],
"remote": true
}{
"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)"
}Volunteers
Get location preferences
The locations a volunteer would rather work at, and whether they will work remotely. Preferences help you find people; they do not limit what anybody can sign up for. Needs read on Shifts.
GET
/
api
/
shifts
/
location-preferences
Get location preferences
curl --request GET \
--url https://{organization}.rescueconsole.com/api/shifts/location-preferences \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/shifts/location-preferences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/shifts/location-preferences"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"person_id": "<string>",
"location_unit_ids": [
"<string>"
],
"locations": [
{
"id": "<string>",
"name": "<string>"
}
],
"remote": true
}{
"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
The person's record ID.