Add the starter breeds
curl --request POST \
--url https://{organization}.rescueconsole.com/api/animals/breeds/seed \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"species": "rabbit"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({species: 'rabbit'})
};
fetch('https://{organization}.rescueconsole.com/api/animals/breeds/seed', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/breeds/seed"
payload = { "species": "rabbit" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"species": "dog",
"added": 123,
"skipped": 123
}{
"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)"
}Breeds
Add the starter breeds
Adds the starter list for one species, skipping any name already on your list. Says how many it added. Needs admin on Animals.
POST
/
api
/
animals
/
breeds
/
seed
Add the starter breeds
curl --request POST \
--url https://{organization}.rescueconsole.com/api/animals/breeds/seed \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"species": "rabbit"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({species: 'rabbit'})
};
fetch('https://{organization}.rescueconsole.com/api/animals/breeds/seed', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/breeds/seed"
payload = { "species": "rabbit" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"species": "dog",
"added": 123,
"skipped": 123
}{
"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_.
Body
application/json
A species key, or a common word for one.