Add a food or supplement
curl --request POST \
--url https://{organization}.rescueconsole.com/api/animals/animals/{id}/feeding-items \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"kind": "food",
"name": "Kitten wet food",
"amount": "Quarter can",
"schedule_note": "Morning and evening"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
kind: 'food',
name: 'Kitten wet food',
amount: 'Quarter can',
schedule_note: 'Morning and evening'
})
};
fetch('https://{organization}.rescueconsole.com/api/animals/animals/{id}/feeding-items', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/animals/{id}/feeding-items"
payload = {
"kind": "food",
"name": "Kitten wet food",
"amount": "Quarter can",
"schedule_note": "Morning and evening"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"kind": "food",
"name": "<string>",
"amount": "<string>",
"schedule_note": "<string>",
"sort_order": 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)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Animal nutrition
Add a food or supplement
Adds a food or a supplement at the end of the animal’s feeding list. An item cannot be changed: delete it and add it again. Needs write on Animals.
POST
/
api
/
animals
/
animals
/
{id}
/
feeding-items
Add a food or supplement
curl --request POST \
--url https://{organization}.rescueconsole.com/api/animals/animals/{id}/feeding-items \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"kind": "food",
"name": "Kitten wet food",
"amount": "Quarter can",
"schedule_note": "Morning and evening"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
kind: 'food',
name: 'Kitten wet food',
amount: 'Quarter can',
schedule_note: 'Morning and evening'
})
};
fetch('https://{organization}.rescueconsole.com/api/animals/animals/{id}/feeding-items', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/animals/{id}/feeding-items"
payload = {
"kind": "food",
"name": "Kitten wet food",
"amount": "Quarter can",
"schedule_note": "Morning and evening"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"kind": "food",
"name": "<string>",
"amount": "<string>",
"schedule_note": "<string>",
"sort_order": 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)"
}{
"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 animal's record ID (not its Pet ID).
Body
application/json