Skip to main content
PUT
Update an address

Authorizations

Authorization
string
header
required

Path Parameters

addressId
string<uuid>
required

Id of the address.

Body

application/json
line1
string
required
Required string length: 1 - 80
city
string
required
Required string length: 1 - 80
postalCode
string
required
Required string length: 1 - 80
country
string
required

Free text: its format is not checked.

Required string length: 1 - 80
name
string | null

Required when company is left out, null or empty. Left out or null: saved as ''.

Maximum string length: 80
company
string | null

Required when name is left out, null or empty. Left out or null: saved as ''.

Maximum string length: 80
line2
string | null

Left out or null: saved as ''.

Maximum string length: 80
line3
string | null

Left out or null: saved as ''.

Maximum string length: 80
externalId
string | null

Id of the address in the caller's system. null or left out clears it.

Required string length: 1 - 80
main
boolean | null

true makes this address the main address of its client: the previous main address stops being main. false and null are ignored.

Response

The updated address.

id
string<uuid>
required

Id of the address.

tenantId
string<uuid>
required
clientId
string<uuid>
required

Id of the client of the address.

name
string
required

Name on the address. '' when the address has none.

company
string
required

Company on the address. '' when the address has none.

line1
string
required

First line of the address.

line2
string
required

Second line of the address. '' when the address has none.

line3
string
required

Third line of the address. '' when the address has none.

city
string
required

City of the address.

postalCode
string
required

Postal code of the address.

country
string
required

Country of the address.

externalId
string | null
required

Id of the address in the caller's system. null when the address has none.

main
boolean
required

Whether the address is the main address of its client. A client has at most one main address. When a create, an update or a delete leaves the client with none, its address created first becomes main.

createdAt
string<date-time>
required

Date the address was created.

updatedAt
string<date-time>
required

Date the address was last updated.