Update a location of a person
Updates a location of the person. An omitted or null field keeps its current value; "" clears it. If the body sets country or country_code, both country fields come from the body (the omitted one counts as ""). formatted is rebuilt from the merged fields. is_primary: true makes this the only primary location; false clears the flag on this location only, leaving the person without a primary location. A location linked to more than one record cannot have its address edited (409 LOCATION_SHARED). Clearing every address field returns 422 EMPTY_LOCATION. Requires people:write.
Body
streetstringStreet address; "" clears it
citystringCity name
statestringState, province or region
zipstringPostal code
countrystringCountry name
country_ codestringISO 3166-1 alpha-2 country code
is_ primarybooleanMake this the primary location
Parameters
idstringrequiredpathPerson ID
location_ idstringrequiredpathLocation ID
Response
Location updated
Invalid id or body
Invalid API key
Insufficient scope
Person or location not found
LOCATION_SHARED: the location is linked to other records
EMPTY_LOCATION or validation error
Internal server error
Authorization
bearer_ authhttp (bearer) in headerAPI key or OAuth access token in Authorization header
Scopes: people:write
oauth2_ authoauth2OAuth authorization code flow with mandatory S256 PKCE.
Scopes: people:write
apikey_ authapiKey in queryAPI key in query string
Scopes: people:write
