# Update an address for a Client

`PUT /lokta-lms/api/v1/client/{clientid}/addresses`

All the address fields can be updated by using update client address API

Mandatory Fields
type and addressId

## Parameters
- `clientid` (path, integer, required): clientId

## Request body (application/json)
- `addressId` (integer)
- `addressLine1` (string)
- `addressLine2` (string)
- `addressLine3` (string)
- `addressTypeId` (integer)
- `city` (string)
- `countryId` (integer)
- `countyDistrict` (string)
- `createdBy` (string)
- `createdOn` (string)
- `isActive` (boolean)
- `latitude` (number)
- `longitude` (number)
- `postalCode` (string)
- `stateProvinceId` (integer)
- `townVillage` (string)
- `updatedBy` (string)
- `updatedOn` (string)

## Responses
- `200`: OK

## Response fields
- `resourceId` (integer)

## Example request (cURL)
```bash
curl -X PUT \
  'http://localhost:8080/lokta-lms/api/v1/client/{clientid}/addresses' \
  -u '{username}:{password}' \
  -H 'Tenant-Identifier: default' \
  -H 'Content-Type: application/json' \
  -d '{
  "addressId": 1,
  "addressLine1": "string",
  "addressLine2": "string",
  "addressLine3": "string",
  "addressTypeId": 1,
  "city": "string",
  "countryId": 1,
  "countyDistrict": "string",
  "createdBy": "string",
  "createdOn": "string"
}'
```

## Example response
```json
{
  "resourceId": 67
}
```

Interactive: https://developer.lokta.ai/reference.html#operation/updateClientAddress
