List who is at an organization
curl --request GET \
--url https://{organization}.rescueconsole.com/api/organizations/organizations/{id}/affiliations \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/organizations/organizations/{id}/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/organizations/{id}/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",
"person": {
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"display_name": "<string>",
"email": "<string>"
}
}
]
}{
"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 who is at an organization
Everyone affiliated with the organization: current ones first, then by start date, newest first, each with the person’s name and email. Needs read on Organizations; it does not need People.
GET
/
api
/
organizations
/
organizations
/
{id}
/
affiliations
List who is at an organization
curl --request GET \
--url https://{organization}.rescueconsole.com/api/organizations/organizations/{id}/affiliations \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/organizations/organizations/{id}/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/organizations/{id}/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",
"person": {
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"display_name": "<string>",
"email": "<string>"
}
}
]
}{
"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_.
Path Parameters
The organization's ID.
Query Parameters
true leaves out affiliations that have ended.
Response
The affiliations.
Show child attributes
Show child attributes