Get age groups
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/age-groups \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/age-groups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/age-groups"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"groups": {},
"units": [
"day"
],
"in_use_by_fees": [
"<string>"
]
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Age groups
Get age groups
Your age groups, grouped by species. An organization that has never set any gets the built-in four (Baby, Young, Adult, Senior) under the key "", which means every species. An animal with no date of birth is in the group unknown, which is not listed. Needs read on Animals.
GET
/
api
/
animals
/
age-groups
Get age groups
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/age-groups \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/age-groups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/age-groups"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"groups": {},
"units": [
"day"
],
"in_use_by_fees": [
"<string>"
]
}{
"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_.
Response
The age groups.