List the animal filters
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/animals/filters \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/animals/filters', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/animals/filters"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"fields": [
{
"param": "<string>",
"label": "<string>",
"kind": "enum",
"values": [
"<string>"
],
"custom": true
}
]
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Animals
List the animal filters
Every field the animals list can be filtered by besides status, care state, species, location, tag, age group, search and outcome person: what kind of filter each is, and the values a fixed list accepts. Each of your custom fields has an entry too. Send a text filter as the text to find, an enum filter as one or more values comma separated, and a boolean filter as yes or no. A date filter is sent as two parameters, its name followed by _from and _to, and a number filter as its name followed by _min and _max. A custom field (custom is true) is the exception: send its value on the parameter named here, whatever its kind. Needs read on Animals.
GET
/
api
/
animals
/
animals
/
filters
List the animal filters
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/animals/filters \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/animals/filters', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/animals/filters"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"fields": [
{
"param": "<string>",
"label": "<string>",
"kind": "enum",
"values": [
"<string>"
],
"custom": true
}
]
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}