PUT
/
public
/
contacts
/
{id}
curl --request PUT \
  --url https://web-api.clerk.chat/public/contacts/{id} \
  --header 'Content-Type: application/json' \
  --header 'apiKey: <api-key>' \
  --data '{
  "name": "John Doe",
  "email": "johndoe@example.com",
  "public": false,
  "data": {}
}'
{
  "data": {
    "id": "1",
    "teamId": "1",
    "createdByUserId": "1",
    "name": "John Doe",
    "phone": "+1234567890",
    "email": "johndoe@example.com",
    "externalId": "1234",
    "optOut": false,
    "avatarURL": "https://example.com/avatar.jpg",
    "public": false,
    "data": {},
    "attributes": [],
    "created": "2021-01-01T00:00:00.000Z",
    "updated": "2021-01-01T00:00:00.000Z"
  }
}

Authorizations

apiKey
string
header
required

Path Parameters

id
string
required

Body

application/json
name
string

The name of the contact

Example:

"John Doe"

email
string

The email address of the contact

Example:

"johndoe@example.com"

public
boolean

Whether the contact is public

Example:

false

data
object

Additional metadata for the contact

Example:
{}

Response

200
application/json
The updated contact
data
object
required