Change a medication
curl --request PATCH \
--url https://{organization}.rescueconsole.com/api/animals/medications/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"default_dose": "1 tablet every 12 hours",
"notes": null
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({default_dose: '1 tablet every 12 hours', notes: null})
};
fetch('https://{organization}.rescueconsole.com/api/animals/medications/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/medications/{id}"
payload = {
"default_dose": "1 tablet every 12 hours",
"notes": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"medication": {
"id": "<string>",
"name": "<string>",
"form": "tablet",
"strength": "<string>",
"default_dose": "<string>",
"notes": "<string>",
"is_active": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"tenant_id": "<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)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Medical catalogue
Change a medication
Send only what changes. Send null to clear a text field. Set is_active to true to bring a retired medication back. Needs write on Animals.
PATCH
/
api
/
animals
/
medications
/
{id}
Change a medication
curl --request PATCH \
--url https://{organization}.rescueconsole.com/api/animals/medications/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"default_dose": "1 tablet every 12 hours",
"notes": null
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({default_dose: '1 tablet every 12 hours', notes: null})
};
fetch('https://{organization}.rescueconsole.com/api/animals/medications/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/medications/{id}"
payload = {
"default_dose": "1 tablet every 12 hours",
"notes": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"medication": {
"id": "<string>",
"name": "<string>",
"form": "tablet",
"strength": "<string>",
"default_dose": "<string>",
"notes": "<string>",
"is_active": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"tenant_id": "<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)"
}{
"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 medication's ID.
Body
application/json
Response
The medication, as it now is.
Show child attributes
Show child attributes