v1

latestOpenAPI 3.1.02026-07-2414238909.1 KB

Update a contact's details

Change the details of a specific contact providing the contact’s id.

put/contacts/my/{id}

Path parameters

idstring required

The id of the contact to be updated.

Headers

Content-Typestring required

application/json

Authorizationstring required

Bearer {access-token}

Request body

emailstring

The e-mail address of the contact.

firstNamestring

The first name of the contact. The length must be between 1 and 60.

lastNamestring

The last name of the contact. The length must be between 1 and 60.

mobilestring required

The mobile number of the contact.

vipboolean

Indicates whether the contact is treated as vip or not. Default value false

Response

200

idstring
firstNamestring
lastNamestring
mobilestring
countrystring
vipboolean
groupsstring[]
blacklistedServicesobject[]
labelsobject[]

Example response

{
  "id": "5673fdbde4b03d651b5b6411",
  "firstName": "James",
  "lastName": "Davis",
  "mobile": "+306984512999",
  "country": "GR",
  "groups": [
    "All"
  ]
}