People

Update a location of a person

PATCH
https://api.searchsoftware.nl/v4/records/people/{id}/locations/{location_id}

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

application/json
streetstring

Street address; "" clears it

citystring

City name

statestring

State, province or region

zipstring

Postal code

countrystring

Country name

country_codestring

ISO 3166-1 alpha-2 country code

is_primaryboolean

Make this the primary location

Parameters

idstringrequiredpath

Person ID

location_idstringrequiredpath

Location ID

Response

Location updated

Response fields application/json
statusstringrequired
Example
ok
dataLocationObjectrequired
Show child attributes
idstringrequired

Identifier

Example
vM7Lp2q
typestringrequired
Example
location
attributesLocationAttributesrequired
Show child attributes
streetstring | null

Street address

Example
Oudegracht 1
citystring | null
Example
Utrecht
statestring | null

State, province or region

Example
Utrecht
zipstring | null
Example
3511 AB
countrystring | null
Example
Netherlands
country_codestring | null
Example
NL
formattedstring | null

Derived from the address fields; read-only

Example
Oudegracht 1, Utrecht, 3511 AB, Utrecht, Netherlands
latstring | null

Read-only

lngstring | null

Read-only

is_primarybooleanrequired
Example
true
created_atstring<date-time> | null
Example
2026-01-15T09:00:00Z
updated_atstring<date-time> | null
Example
2026-01-15T09:00:00Z
400Bad RequestErrorResponse

Invalid id or body

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INVALID_BODY",
    "status_code": 400,
    "message": "Invalid request body"
  }
}
401UnauthorizedErrorResponse

Invalid API key

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INVALID_API_KEY",
    "status_code": 401,
    "message": "Invalid API key"
  }
}
403ForbiddenErrorResponse

Insufficient scope

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "FORBIDDEN",
    "status_code": 403,
    "message": "Insufficient scope"
  }
}
404Not FoundErrorResponse

Person or location not found

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "NOT_FOUND",
    "status_code": 404,
    "message": "Record not found"
  }
}
409ConflictErrorResponse

LOCATION_SHARED: the location is linked to other records

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

422Unprocessable EntityErrorResponse

EMPTY_LOCATION or validation error

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "VALIDATION_FAILED",
    "status_code": 422,
    "message": "Validation failed"
  }
}
500Internal Server ErrorErrorResponse

Internal server error

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INTERNAL_ERROR",
    "status_code": 500,
    "message": "Internal server error"
  }
}

Authorization

bearer_authhttp (bearer) in header

API key or OAuth access token in Authorization header

Scopes: people:write

oauth2_authoauth2

OAuth authorization code flow with mandatory S256 PKCE.

Scopes: people:write

apikey_authapiKey in query

API key in query string

Scopes: people:write