Add an application stage
curl --request POST \
--url https://{organization}.rescueconsole.com/api/animals/application-stages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "Home visit booked",
"kind": "adoption",
"color": "#0ea5e9"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: 'Home visit booked', kind: 'adoption', color: '#0ea5e9'})
};
fetch('https://{organization}.rescueconsole.com/api/animals/application-stages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/application-stages"
payload = {
"label": "Home visit booked",
"kind": "adoption",
"color": "#0ea5e9"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"results": [
{
"key": "<string>",
"label": "<string>",
"kind": "adoption",
"color": "<string>",
"sort_order": 123,
"is_system": true,
"is_enabled": true,
"status": "draft"
}
],
"usage": {}
}{
"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)"
}Application stages
Add an application stage
Adds a stage of your own at the end of the list. Its key is made from its name, and it sits within the under_review status. There can be 40 stages at most. Answers with the whole list. Needs write on Animals.
POST
/
api
/
animals
/
application-stages
Add an application stage
curl --request POST \
--url https://{organization}.rescueconsole.com/api/animals/application-stages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "Home visit booked",
"kind": "adoption",
"color": "#0ea5e9"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: 'Home visit booked', kind: 'adoption', color: '#0ea5e9'})
};
fetch('https://{organization}.rescueconsole.com/api/animals/application-stages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/application-stages"
payload = {
"label": "Home visit booked",
"kind": "adoption",
"color": "#0ea5e9"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"results": [
{
"key": "<string>",
"label": "<string>",
"kind": "adoption",
"color": "<string>",
"sort_order": 123,
"is_system": true,
"is_enabled": true,
"status": "draft"
}
],
"usage": {}
}{
"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
The name. Unique, ignoring case. Longer names are cut to 80 characters.
Which applications the stage is for: adoption, foster, or both.
Available options:
adoption, foster, both A colour as #rrggbb. Anything else is saved as no colour.
Pattern:
^#[0-9a-fA-F]{6}$