How do I update an address using the API, including overriding a bad geolocation? I have tried passing a JSON object like { 'person': { 'primary_address': { 'lat': '90.0', 'address1': 'far away' } } } This doesn't throw an error but it doesn't update the address either. I'd be amazed if it isn't possible to do this so I must be doing something wrong. Can anybody help please?
After reviewing this case, we determined that you are not able to pass primary_address information through the API. This is due to the idea that primary address is just a type of address and not specifically an address itself. Address examples are mailing_address, registered_address, home_address, work_address, and billing_address.
To pass an address through the API, you can use our People API home_address endpoint. For example, you could pass a json package like this:
{
"person": {
"home_address": {
"address1": "",
"address2": "",
"address3": null,
"city": "",
"state": "CA",
"country_code": "US",
"zip": null,
"lat": "",
"lng": ""
}
}
}
If you continue to have trouble with this request, please add a comment below and we can troubleshoot it together!
Showing 3 reactions
Sign in with
I have been trying the people/:id endpoint. With this one, if I send a JSON object such as this in the body…
{
“person”: {
“employer”: “some co”,
“primary_address”: {
“address1”: “somewhere far away”,
}
}
}
… the employer is updated but the address1 on the primary_address is not.
If however I change primary_address to registered_address or home_address in the above example then it does update the specific address.
Perhaps I am using the wrong endpoint; is there a specific one for addresses?