Sign off many sign-ups
curl --request POST \
--url https://{organization}.rescueconsole.com/api/shifts/bookings/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "sign_off",
"ids": [
"a8d3f6b1-2c9e-4d7a-8e1b-6f4c3a9d2e85",
"f3b7e1c9-5a2d-4f8b-9c6e-2d8a4b1f7e39"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
action: 'sign_off',
ids: ['a8d3f6b1-2c9e-4d7a-8e1b-6f4c3a9d2e85', 'f3b7e1c9-5a2d-4f8b-9c6e-2d8a4b1f7e39']
})
};
fetch('https://{organization}.rescueconsole.com/api/shifts/bookings/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/shifts/bookings/bulk"
payload = {
"action": "sign_off",
"ids": ["a8d3f6b1-2c9e-4d7a-8e1b-6f4c3a9d2e85", "f3b7e1c9-5a2d-4f8b-9c6e-2d8a4b1f7e39"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"action": "sign_off",
"signed": 123,
"already_signed": 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)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Shift bookings
Sign off many sign-ups
Signs off the hours on many sign-ups at once, as the person who created the key. Every one must have its hours logged (zero counts). Ones already signed off are skipped and keep their signature. If any of them was given up or has no hours, nothing is signed. There is no bulk un-sign. Needs write on Shifts.
A coordinator’s: needs write on Shifts AND read on People. A key without read on People is refused (403) with “Only a coordinator can do this: it needs permission to see People.”
POST
/
api
/
shifts
/
bookings
/
bulk
Sign off many sign-ups
curl --request POST \
--url https://{organization}.rescueconsole.com/api/shifts/bookings/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "sign_off",
"ids": [
"a8d3f6b1-2c9e-4d7a-8e1b-6f4c3a9d2e85",
"f3b7e1c9-5a2d-4f8b-9c6e-2d8a4b1f7e39"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
action: 'sign_off',
ids: ['a8d3f6b1-2c9e-4d7a-8e1b-6f4c3a9d2e85', 'f3b7e1c9-5a2d-4f8b-9c6e-2d8a4b1f7e39']
})
};
fetch('https://{organization}.rescueconsole.com/api/shifts/bookings/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/shifts/bookings/bulk"
payload = {
"action": "sign_off",
"ids": ["a8d3f6b1-2c9e-4d7a-8e1b-6f4c3a9d2e85", "f3b7e1c9-5a2d-4f8b-9c6e-2d8a4b1f7e39"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"action": "sign_off",
"signed": 123,
"already_signed": 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)"
}{
"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
application/json