Add an address
curl --request POST \
--url https://{organization}.rescueconsole.com/api/people/persons/{id}/addresses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "Summer",
"address": {
"country": "US",
"line1": "9 Birch Point Road",
"city": "Bar Harbor",
"administrative_area": "ME",
"postal_code": "04609"
},
"is_primary": false
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
label: 'Summer',
address: {
country: 'US',
line1: '9 Birch Point Road',
city: 'Bar Harbor',
administrative_area: 'ME',
postal_code: '04609'
},
is_primary: false
})
};
fetch('https://{organization}.rescueconsole.com/api/people/persons/{id}/addresses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/people/persons/{id}/addresses"
payload = {
"label": "Summer",
"address": {
"country": "US",
"line1": "9 Birch Point Road",
"city": "Bar Harbor",
"administrative_area": "ME",
"postal_code": "04609"
},
"is_primary": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"person_id": "<string>",
"label": "<string>",
"address": {
"country": "<string>",
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"administrative_area": "<string>",
"postal_code": "<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)"
}Person addresses
Add an address
Adds an address. It needs at least one line filled in. The first address is primary whatever you send; a later one becomes primary when you send is_primary: true. The primary address is copied onto the person’s own address. Needs write on People.
POST
/
api
/
people
/
persons
/
{id}
/
addresses
Add an address
curl --request POST \
--url https://{organization}.rescueconsole.com/api/people/persons/{id}/addresses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "Summer",
"address": {
"country": "US",
"line1": "9 Birch Point Road",
"city": "Bar Harbor",
"administrative_area": "ME",
"postal_code": "04609"
},
"is_primary": false
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
label: 'Summer',
address: {
country: 'US',
line1: '9 Birch Point Road',
city: 'Bar Harbor',
administrative_area: 'ME',
postal_code: '04609'
},
is_primary: false
})
};
fetch('https://{organization}.rescueconsole.com/api/people/persons/{id}/addresses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/people/persons/{id}/addresses"
payload = {
"label": "Summer",
"address": {
"country": "US",
"line1": "9 Birch Point Road",
"city": "Bar Harbor",
"administrative_area": "ME",
"postal_code": "04609"
},
"is_primary": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"person_id": "<string>",
"label": "<string>",
"address": {
"country": "<string>",
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"administrative_area": "<string>",
"postal_code": "<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_.
Path Parameters
The person's ID.
Body
application/json
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
Such as Home or Work. Cut to 60 characters.
Maximum string length:
60Cut to 500 characters.
Maximum string length:
500true makes this the primary address.
Response
The address.
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