Skip to main content
PUT
/
contacts
/
{contactId}
Update contact
curl --request PUT \
  --url https://api.heyy.io/api/v2.0/contacts/{contactId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "firstName": "<string>",
  "lastName": "<string>",
  "labels": [
    {
      "name": "<string>"
    }
  ],
  "attributes": [
    {
      "externalId": "<string>",
      "value": "<string>"
    }
  ]
}'
{
  "data": {
    "id": "<string>",
    "firstName": "<string>",
    "lastName": "<string>",
    "phoneNumber": "<string>",
    "email": "<string>",
    "labels": [
      "<string>"
    ],
    "attributes": [
      {
        "name": "<string>",
        "value": "<string>"
      }
    ],
    "createdAt": "<string>",
    "updatedAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

contactId
string
required

Body

application/json
firstName
string | null
lastName
string | null
labels
object[]
attributes
object[]

Response

200 - application/json
data
object
required