curl --request GET \
--url https://{organization}.rescueconsole.com/api/shifts/schedules/export \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/shifts/schedules/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/shifts/schedules/export"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)"<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)"
}Export schedules
Your schedules as a CSV file, with the filters of List schedules. Up to 5,000 rows, latest start first. The location is given by name and all_day as yes or no. Columns: id, name, event_kind, status, starts_at, ends_at, all_day, location, description, created_at. Needs read on Shifts.
curl --request GET \
--url https://{organization}.rescueconsole.com/api/shifts/schedules/export \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/shifts/schedules/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/shifts/schedules/export"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)"<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)"
}Authorizations
An API key from Settings, API keys. It starts with rc_live_.
Query Parameters
One status. A draft schedule is not shown on the calendar.
draft, scheduled, active, completed, cancelled One kind.
adoption, fundraiser, clinic, transport, training, meeting, events, other Schedules at one location.
Schedules that start on or after this date, or date and time.
Schedules that start on or before this date, or date and time.
The name contains this text.
The description contains this text.
yes, no Schedules that end on or after this.
Schedules that end on or before this.
Response
The file, named events.csv.
The response is of type string.