Change an application stage
curl --request PATCH \
--url https://{organization}.rescueconsole.com/api/animals/application-stages/{key} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "Waiting on landlord",
"color": null
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: 'Waiting on landlord', color: null})
};
fetch('https://{organization}.rescueconsole.com/api/animals/application-stages/{key}', 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/{key}"
payload = {
"label": "Waiting on landlord",
"color": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(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)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Application stages
Change an application stage
Send only what changes. A built-in stage can be renamed, recoloured and switched off, except Draft, Submitted and Under review, which stay on. The key never changes. Answers with the whole list. Needs write on Animals.
PATCH
/
api
/
animals
/
application-stages
/
{key}
Change an application stage
curl --request PATCH \
--url https://{organization}.rescueconsole.com/api/animals/application-stages/{key} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "Waiting on landlord",
"color": null
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: 'Waiting on landlord', color: null})
};
fetch('https://{organization}.rescueconsole.com/api/animals/application-stages/{key}', 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/{key}"
payload = {
"label": "Waiting on landlord",
"color": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(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)"
}{
"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 stage's key, such as pending_third_party.
Body
application/json