---
title: "Update the address section for a given employee id."
method: PUT
path: "/employees/{employeeId}/addresses"
tags: ["Employees"]
---

# Update the address section for a given employee id.

`PUT /employees/{employeeId}/addresses`

This endpoint updates the employee **address** section for a given employee id. The operation only updates the fields provided in the body.
<br><br>**Custom fields** information can be provided in this operation. The *API name* of the custom field is required and the data format has to match with the type defined for the custom field in Kenjo.
API names start with 'c_' and the rest is composed by the trimmed name (spaces are removed).
<br><br>
Example:
<br>
*The custom field 'province' belongs to the 'address' section*:
  ```
  {
    ...,
    "country": "ES",
    "c_province": "MD",
    ...
  }
```
*'province' is a field type 'String'. It means that if a different type of data (number or boolean) is provided then the request will return an error.*

## Path parameters

- `employeeId` string, required

## Headers

- `Authorization` string, required

## Request body

- object
  - `street` string — The name of the street.
  - `postalCode` string — The postal code.
  - `city` string — The city.
  - `country` string — The country code in ISO 3166-1 alpha-2.
  - `houseNumber` string — The house number.
  - `additionalAddress` string — The additional address.

## Response `200`

OK

- object
  - `_id` string — The employee Kenjo *_id*.
  - `street` string — The name of the street.
  - `postalCode` string — The postal code.
  - `city` string — The city.
  - `country` string — The country code in ISO 3166-1 alpha-2.
  - `houseNumber` string — The house number.
  - `additionalAddress` string — The additional address.

## Other responses

- `400` — BAD REQUEST. This is a wrong request in the client side due to invalid body or params.
- `401` — UNAUTHORIZED. The Authorization header is incorrect, not provided or the token expired.

---

[API](https://skmtc.net/kenjo/apis/kenjo-api.md) · [All operations](https://skmtc.net/kenjo/apis/kenjo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kenjo/kenjo-api/revisions/58772b78268e/schema)
