curl --request POST \
--url https://{organization}.rescueconsole.com/api/animals/animals/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "set_status",
"value": "available_for_adoption",
"ids": [
"b3e9a7c4-1f26-4d58-8e0b-5a4c2d7f9e63",
"0a8c5e21-7b3d-4f96-b1e4-92d6c3a8f507",
"e71b4d09-3a6f-4c2e-9d85-6f0a1b2c3e48"
]
}
'{
"updated": 123,
"unchanged": 123,
"action": "set_status",
"value": "<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)"
}Change many animals
One change to as many as 200 animals at once, named by ids or chosen by filter: send exactly one of the two. filter is a query string in the list’s own terms, such as status=intake_processing&species=cat, and selects what the list would show. A selection of more than 200 is refused before anything changes. set_status, add_tag and remove_tag take value. update takes patch, which may set only the fields listed below. delete deletes each animal, as deleting one does. An animal that already holds every value is left alone and counted as unchanged. A status change closes an active foster placement exactly as changing one animal does. Status changes, updates and deletes are recorded in each animal’s activity and sent to your webhooks; tags are not. Needs write on Animals.
curl --request POST \
--url https://{organization}.rescueconsole.com/api/animals/animals/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "set_status",
"value": "available_for_adoption",
"ids": [
"b3e9a7c4-1f26-4d58-8e0b-5a4c2d7f9e63",
"0a8c5e21-7b3d-4f96-b1e4-92d6c3a8f507",
"e71b4d09-3a6f-4c2e-9d85-6f0a1b2c3e48"
]
}
'{
"updated": 123,
"unchanged": 123,
"action": "set_status",
"value": "<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_.
Body
set_status, add_tag, remove_tag, update, delete For set_status, the status key; for add_tag and remove_tag, the tag.
For update: the fields to set on every animal. Any other field is refused.
Show child attributes
Show child attributes
The animals' record IDs. Every one must be yours, or nothing changes and the answer is 404.
1 - 200 elementsA query string of list filters. Refused when nothing matches or more than 200 match.