Count medical work due
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/medical-due/facets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/medical-due/facets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/medical-due/facets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"window_days": 123,
"counts": {
"overdue": 123,
"due_today": 123,
"upcoming": 123
},
"facets": {
"record_type": [
{
"value": "vaccination",
"label": "<string>",
"count": 123
}
],
"species": [
{
"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)"
}Medical due
Count medical work due
How much of what is due matches, by record type and by species, for a filter beside the list. Each group is counted without its own filter, so it says what picking that value would give. Every record type is listed, at 0 when none match; species lists only those with something due. Needs read on Animals.
GET
/
api
/
animals
/
medical-due
/
facets
Count medical work due
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/medical-due/facets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/medical-due/facets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/medical-due/facets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"window_days": 123,
"counts": {
"overdue": 123,
"due_today": 123,
"upcoming": 123
},
"facets": {
"record_type": [
{
"value": "vaccination",
"label": "<string>",
"count": 123
}
],
"species": [
{
"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
How many days ahead of today to include. Overdue records are always included, however old.
Required range:
1 <= x <= 365Only records of this type.
Available options:
vaccination, treatment, procedure, test, medication, exam, condition, preventative Only records on animals of this species.