Add an animal to an application
curl --request POST \
--url https://{organization}.rescueconsole.com/api/animals/applications/{id}/pets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"animal_id": "0c9d8e7f-6a5b-4c3d-9e1f-0a9b8c7d6e5f"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({animal_id: '0c9d8e7f-6a5b-4c3d-9e1f-0a9b8c7d6e5f'})
};
fetch('https://{organization}.rescueconsole.com/api/animals/applications/{id}/pets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/applications/{id}/pets"
payload = { "animal_id": "0c9d8e7f-6a5b-4c3d-9e1f-0a9b8c7d6e5f" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"animal_id": "<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)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Adoption applications
Add an animal to an application
Adds an animal to the application, last in the order of preference. Not on an application that is approved, denied or withdrawn. Needs write on Animals.
POST
/
api
/
animals
/
applications
/
{id}
/
pets
Add an animal to an application
curl --request POST \
--url https://{organization}.rescueconsole.com/api/animals/applications/{id}/pets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"animal_id": "0c9d8e7f-6a5b-4c3d-9e1f-0a9b8c7d6e5f"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({animal_id: '0c9d8e7f-6a5b-4c3d-9e1f-0a9b8c7d6e5f'})
};
fetch('https://{organization}.rescueconsole.com/api/animals/applications/{id}/pets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/applications/{id}/pets"
payload = { "animal_id": "0c9d8e7f-6a5b-4c3d-9e1f-0a9b8c7d6e5f" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"animal_id": "<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)"
}{
"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 application's ID.
Body
application/json