Add a breed
curl --request POST \
--url https://{organization}.rescueconsole.com/api/animals/breeds \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"species": "dog",
"name": "Catahoula Leopard Dog"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({species: 'dog', name: 'Catahoula Leopard Dog'})
};
fetch('https://{organization}.rescueconsole.com/api/animals/breeds', 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"
payload = {
"species": "dog",
"name": "Catahoula Leopard Dog"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"breed": {
"id": "<string>",
"species": "dog",
"name": "<string>",
"sort_order": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"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)"
}Breeds
Add a breed
Adds a breed or kind to one species’ list. A name already on that list, in any case, is refused with 409. A species holds 500 at most. Needs admin on Animals.
POST
/
api
/
animals
/
breeds
Add a breed
curl --request POST \
--url https://{organization}.rescueconsole.com/api/animals/breeds \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"species": "dog",
"name": "Catahoula Leopard Dog"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({species: 'dog', name: 'Catahoula Leopard Dog'})
};
fetch('https://{organization}.rescueconsole.com/api/animals/breeds', 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"
payload = {
"species": "dog",
"name": "Catahoula Leopard Dog"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"breed": {
"id": "<string>",
"species": "dog",
"name": "<string>",
"sort_order": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"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_.
Body
application/json
Response
The breed.
Show child attributes
Show child attributes