Set the event's animals
curl --request PUT \
--url https://{organization}.rescueconsole.com/api/events/events/{id}/animals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"animal_ids": [
"e4a1c9f0-7b2d-4c6e-9a3f-1d8b5e2c0a77",
"0c3f7a9e-2d1b-4e5c-8f6a-b9d4e1c7a352"
]
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
animal_ids: ['e4a1c9f0-7b2d-4c6e-9a3f-1d8b5e2c0a77', '0c3f7a9e-2d1b-4e5c-8f6a-b9d4e1c7a352']
})
};
fetch('https://{organization}.rescueconsole.com/api/events/events/{id}/animals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/events/events/{id}/animals"
payload = { "animal_ids": ["e4a1c9f0-7b2d-4c6e-9a3f-1d8b5e2c0a77", "0c3f7a9e-2d1b-4e5c-8f6a-b9d4e1c7a352"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"animal_ids": [
"<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)"
}Events
Set the event's animals
Replaces the animals the event lists with the ones you send, in that order. Send an empty list to clear it. At most 60, and every one must be one of your animals, or nothing changes. Listing an animal on an event does not publish it: your public site shows only the animals it would show anyway. Needs write on Events.
PUT
/
api
/
events
/
events
/
{id}
/
animals
Set the event's animals
curl --request PUT \
--url https://{organization}.rescueconsole.com/api/events/events/{id}/animals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"animal_ids": [
"e4a1c9f0-7b2d-4c6e-9a3f-1d8b5e2c0a77",
"0c3f7a9e-2d1b-4e5c-8f6a-b9d4e1c7a352"
]
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
animal_ids: ['e4a1c9f0-7b2d-4c6e-9a3f-1d8b5e2c0a77', '0c3f7a9e-2d1b-4e5c-8f6a-b9d4e1c7a352']
})
};
fetch('https://{organization}.rescueconsole.com/api/events/events/{id}/animals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/events/events/{id}/animals"
payload = { "animal_ids": ["e4a1c9f0-7b2d-4c6e-9a3f-1d8b5e2c0a77", "0c3f7a9e-2d1b-4e5c-8f6a-b9d4e1c7a352"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"animal_ids": [
"<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)"
}Authorizations
An API key from Settings, API keys. It starts with rc_live_.
Path Parameters
The event's ID.
Body
application/json
Animal record IDs, in the order to show them. A repeated ID is listed once.
Maximum array length:
60Response
The animals the event now lists, in order.