Skip to main content
PUT
Update a contact

Authorizations

Authorization
string
header
required

Path Parameters

contactId
string<uuid>
required

Id of the contact.

Body

application/json
title
string | null
Maximum string length: 80
firstName
string | null
Maximum string length: 80
lastName
string | null
Maximum string length: 80
email
string<email> | null

Saved in lower case.

Maximum string length: 254
phoneNumber
string | null
Maximum string length: 80
mobilePhoneNumber
string | null
Maximum string length: 80
externalId
string | null

Id of the contact in the caller's system. null clears it.

Required string length: 1 - 80
main
boolean | null

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

Response

The updated contact.

id
string<uuid>
required

Id of the contact.

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

Id of the client of the contact.

title
string | null
required

Form of address of the contact, such as Madame. null when the contact has none.

firstName
string | null
required

First name of the contact. null when the contact has none.

lastName
string | null
required

Last name of the contact. null when the contact has none.

email
string | null
required

Email address of the contact, in lower case. null when the contact has none.

phoneNumber
string | null
required

Phone number of the contact. null when the contact has none.

mobilePhoneNumber
string | null
required

Mobile phone number of the contact. null when the contact has none.

externalId
string | null
required

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

main
boolean
required

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

createdAt
string<date-time>
required

Date the contact was created.

updatedAt
string<date-time>
required

Date the contact was last updated.