List person filters
curl --request GET \
--url https://{organization}.rescueconsole.com/api/people/persons/filters \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/people/persons/filters', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/people/persons/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)"
}People
List person filters
What the people list can be filtered by: the fixed filters, then the custom fields that can be used as filters (all of your own, and the built-in ones with set answers or a number), each with the query parameter it uses. For the fixed date filters send <param>_from and <param>_to. A custom field (custom is true) takes one value in its own parameter whatever its kind says: a range does not work on a custom date or number field. Needs read on People.
GET
/
api
/
people
/
persons
/
filters
List person filters
curl --request GET \
--url https://{organization}.rescueconsole.com/api/people/persons/filters \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/people/persons/filters', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/people/persons/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)"
}