Set the legs of a run
curl --request PUT \
--url https://{organization}.rescueconsole.com/api/animals/transports/{id}/legs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"legs": [
{
"from_place": "Contoso Animal Rescue, Main St",
"to_place": "Exit 42 Travel Plaza",
"depart_at": "2026-10-03T08:00:00Z",
"arrive_at": "2026-10-03T10:30:00Z",
"driver_person_id": "e5b7a1c6-9b8f-4ace-9c5d-7fb0a0ae2c54"
},
{
"from_place": "Exit 42 Travel Plaza",
"to_place": "Northfield Humane Society",
"depart_at": "2026-10-03T11:00:00Z",
"arrive_at": "2026-10-03T13:15:00Z",
"driver_person_id": "f6c8b2d7-0c9a-4bdf-8d6e-8ac1b1bf3d65"
}
]
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
legs: [
{
from_place: 'Contoso Animal Rescue, Main St',
to_place: 'Exit 42 Travel Plaza',
depart_at: '2026-10-03T08:00:00Z',
arrive_at: '2026-10-03T10:30:00Z',
driver_person_id: 'e5b7a1c6-9b8f-4ace-9c5d-7fb0a0ae2c54'
},
{
from_place: 'Exit 42 Travel Plaza',
to_place: 'Northfield Humane Society',
depart_at: '2026-10-03T11:00:00Z',
arrive_at: '2026-10-03T13:15:00Z',
driver_person_id: 'f6c8b2d7-0c9a-4bdf-8d6e-8ac1b1bf3d65'
}
]
})
};
fetch('https://{organization}.rescueconsole.com/api/animals/transports/{id}/legs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/transports/{id}/legs"
payload = { "legs": [
{
"from_place": "Contoso Animal Rescue, Main St",
"to_place": "Exit 42 Travel Plaza",
"depart_at": "2026-10-03T08:00:00Z",
"arrive_at": "2026-10-03T10:30:00Z",
"driver_person_id": "e5b7a1c6-9b8f-4ace-9c5d-7fb0a0ae2c54"
},
{
"from_place": "Exit 42 Travel Plaza",
"to_place": "Northfield Humane Society",
"depart_at": "2026-10-03T11:00:00Z",
"arrive_at": "2026-10-03T13:15:00Z",
"driver_person_id": "f6c8b2d7-0c9a-4bdf-8d6e-8ac1b1bf3d65"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"scheduled_date": "2023-12-25",
"origin": "<string>",
"destination": "<string>",
"status": "planning",
"legs": [
{
"id": "<string>",
"sequence": 123,
"from_place": "<string>",
"to_place": "<string>",
"driver_person_id": "<string>",
"depart_at": "<string>",
"arrive_at": "<string>",
"driver_name": "<string>",
"notes": "<string>"
}
],
"animals": [
{
"id": "<string>",
"name": "<string>",
"species": "<string>",
"status": "<string>",
"notes": "<string>"
}
],
"problems": [
{
"kind": "no_legs",
"sequence": 123,
"message": "<string>"
}
],
"notes": "<string>",
"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)"
}Transports
Set the legs of a run
Replaces every leg of the run with the list you send, in order: the first you send is leg 1. At most 40. Each leg needs a start and an end; a driver must be a person in your organization. An empty list removes every leg. If anything is refused, the legs the run had are kept. Needs write on Animals.
PUT
/
api
/
animals
/
transports
/
{id}
/
legs
Set the legs of a run
curl --request PUT \
--url https://{organization}.rescueconsole.com/api/animals/transports/{id}/legs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"legs": [
{
"from_place": "Contoso Animal Rescue, Main St",
"to_place": "Exit 42 Travel Plaza",
"depart_at": "2026-10-03T08:00:00Z",
"arrive_at": "2026-10-03T10:30:00Z",
"driver_person_id": "e5b7a1c6-9b8f-4ace-9c5d-7fb0a0ae2c54"
},
{
"from_place": "Exit 42 Travel Plaza",
"to_place": "Northfield Humane Society",
"depart_at": "2026-10-03T11:00:00Z",
"arrive_at": "2026-10-03T13:15:00Z",
"driver_person_id": "f6c8b2d7-0c9a-4bdf-8d6e-8ac1b1bf3d65"
}
]
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
legs: [
{
from_place: 'Contoso Animal Rescue, Main St',
to_place: 'Exit 42 Travel Plaza',
depart_at: '2026-10-03T08:00:00Z',
arrive_at: '2026-10-03T10:30:00Z',
driver_person_id: 'e5b7a1c6-9b8f-4ace-9c5d-7fb0a0ae2c54'
},
{
from_place: 'Exit 42 Travel Plaza',
to_place: 'Northfield Humane Society',
depart_at: '2026-10-03T11:00:00Z',
arrive_at: '2026-10-03T13:15:00Z',
driver_person_id: 'f6c8b2d7-0c9a-4bdf-8d6e-8ac1b1bf3d65'
}
]
})
};
fetch('https://{organization}.rescueconsole.com/api/animals/transports/{id}/legs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/transports/{id}/legs"
payload = { "legs": [
{
"from_place": "Contoso Animal Rescue, Main St",
"to_place": "Exit 42 Travel Plaza",
"depart_at": "2026-10-03T08:00:00Z",
"arrive_at": "2026-10-03T10:30:00Z",
"driver_person_id": "e5b7a1c6-9b8f-4ace-9c5d-7fb0a0ae2c54"
},
{
"from_place": "Exit 42 Travel Plaza",
"to_place": "Northfield Humane Society",
"depart_at": "2026-10-03T11:00:00Z",
"arrive_at": "2026-10-03T13:15:00Z",
"driver_person_id": "f6c8b2d7-0c9a-4bdf-8d6e-8ac1b1bf3d65"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"scheduled_date": "2023-12-25",
"origin": "<string>",
"destination": "<string>",
"status": "planning",
"legs": [
{
"id": "<string>",
"sequence": 123,
"from_place": "<string>",
"to_place": "<string>",
"driver_person_id": "<string>",
"depart_at": "<string>",
"arrive_at": "<string>",
"driver_name": "<string>",
"notes": "<string>"
}
],
"animals": [
{
"id": "<string>",
"name": "<string>",
"species": "<string>",
"status": "<string>",
"notes": "<string>"
}
],
"problems": [
{
"kind": "no_legs",
"sequence": 123,
"message": "<string>"
}
],
"notes": "<string>",
"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_.
Path Parameters
The run's ID.
Body
application/json
The whole chain, in order.
Show child attributes
Show child attributes
Response
The run, with its new legs and problems.
Available options:
planning, confirmed, in_progress, completed, cancelled In order.
Show child attributes
Show child attributes
The animals on the run, by name.
Show child attributes
Show child attributes
Every reason the run cannot be confirmed yet. Empty when it is ready.
Show child attributes
Show child attributes