PATCH
/
contacts
/
{id}
curl --request PATCH \
  --url https://wt.ls/api/v4/contacts/{id} \
  --header 'Content-Type: application/json' \
  --header 'apiKey: <api-key>' \
  --data '{
  "email": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "phoneNumber": "<string>",
  "customData": {},
  "unsubscribed": true,
  "isVerified": true,
  "points": 123,
  "referrals": 123,
  "address": "<string>",
  "isGDPR": true,
  "name": "<string>",
  "instagram": "<string>",
  "twitter": "<string>",
  "website": "<string>",
  "company": "<string>",
  "country": "<string>",
  "city": "<string>"
}'
{
  "data": {
    "contact": {
      "id": "<string>",
      "email": "<string>",
      "firstName": "<string>",
      "lastName": "<string>",
      "phoneNumber": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "points": 123,
      "referrals": 123,
      "listId": "<string>",
      "isVerified": true,
      "unsubscribed": true,
      "customData": {},
      "address": "<string>",
      "isGDPR": true,
      "name": "<string>",
      "instagram": "<string>",
      "twitter": "<string>",
      "website": "<string>",
      "company": "<string>",
      "country": "<string>",
      "city": "<string>",
      "list": {},
      "audiences": [
        "<any>"
      ],
      "referralLink": "<string>",
      "privateLink": "<string>"
    }
  }
}

Authorizations

apiKey
string
header
required

API key to authorize requests

Path Parameters

id
string
required

ID of the contact to update

Body

application/json
email
string

Email address of the contact

firstName
string

First name of the contact

lastName
string

Last name of the contact

phoneNumber
string

Phone number of the contact

customData
object

Custom data associated with the contact

unsubscribed
boolean

Whether the contact has unsubscribed

isVerified
boolean

Whether the contact is verified

points
integer

Points accumulated by the contact

referrals
integer

Number of referrals by the contact

address
string

Contact's address

isGDPR
boolean

Whether the contact has GDPR consent

name
string

Full name of the contact

instagram
string

Instagram handle

twitter
string

Twitter handle

website
string

Personal website URL

company
string

Company name

country
string

Country of residence

city
string

City of residence

Response

200
application/json
Contact updated successfully
data
object