List a person's affiliations
curl --request GET \
--url https://{organization}.rescueconsole.com/api/organizations/affiliations \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/organizations/affiliations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/organizations/affiliations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"person_id": "<string>",
"organization_id": "<string>",
"kind": "employee",
"title": "<string>",
"started_on": "2023-12-25",
"ended_on": "2023-12-25",
"is_current": true,
"is_primary": true,
"notes": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"organization": {
"id": "<string>",
"name": "<string>",
"kind": "veterinary_practice"
}
}
]
}{
"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)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Affiliations
List a person's affiliations
Everywhere a person is, or was: current ones first, their primary one first among those, then by start date, newest first, each with the organization’s name and kind. Needs read on Organizations.
GET
/
api
/
organizations
/
affiliations
List a person's affiliations
curl --request GET \
--url https://{organization}.rescueconsole.com/api/organizations/affiliations \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/organizations/affiliations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/organizations/affiliations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"person_id": "<string>",
"organization_id": "<string>",
"kind": "employee",
"title": "<string>",
"started_on": "2023-12-25",
"ended_on": "2023-12-25",
"is_current": true,
"is_primary": true,
"notes": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"organization": {
"id": "<string>",
"name": "<string>",
"kind": "veterinary_practice"
}
}
]
}{
"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)"
}{
"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 ID.
true leaves out affiliations that have ended.
Response
The affiliations.
Show child attributes
Show child attributes