curl --request PATCH \
--url https://{organization}.rescueconsole.com/api/organizations/organizations/{id}/locations/{locationId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"is_primary": true
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({is_primary: true})
};
fetch('https://{organization}.rescueconsole.com/api/organizations/organizations/{id}/locations/{locationId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/organizations/organizations/{id}/locations/{locationId}"
payload = { "is_primary": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"organization_id": "<string>",
"name": "<string>",
"address": {
"country": "<string>",
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"administrative_area": "<string>",
"postal_code": "<string>"
},
"phone": "<string>",
"phone_country": "<string>",
"is_primary": true,
"notes": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"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)"
}Change a location
Send only what changes; address is replaced whole. To change which location is the main one, send is_primary: true on the new one; is_primary: false on the main one is refused. Needs write on Organizations.
curl --request PATCH \
--url https://{organization}.rescueconsole.com/api/organizations/organizations/{id}/locations/{locationId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"is_primary": true
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({is_primary: true})
};
fetch('https://{organization}.rescueconsole.com/api/organizations/organizations/{id}/locations/{locationId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/organizations/organizations/{id}/locations/{locationId}"
payload = { "is_primary": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"organization_id": "<string>",
"name": "<string>",
"address": {
"country": "<string>",
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"administrative_area": "<string>",
"postal_code": "<string>"
},
"phone": "<string>",
"phone_country": "<string>",
"is_primary": true,
"notes": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"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
Such as Westbrook clinic. Cut to 120 characters; empty unless you say.
120Every part is optional, and a key not listed here is refused. An empty or null part is removed.
Show child attributes
Show child attributes
Kept as digits only. At most 15 digits together with the calling code.
The calling code, one to three digits, like 1 or 44. A value that is not a calling code is refused.
Cut to 2,000 characters.
2000true makes this the main location.
Response
The location, as it now is.
Every part is optional, and a key not listed here is refused. An empty or null part is removed.
Show child attributes
Show child attributes
Whether this is the main location.