---
title: "Update Chat Contact"
method: PUT
path: "/contacts/{id}"
tags: ["Contacts", "ChatContact"]
---

# Update Chat Contact

`PUT /contacts/{id}`

## Request

- Base URL: `https://developers.chatway.app/api/v1`
- URL: `https://developers.chatway.app/api/v1/contacts/{id}`
- Auth: API key in header `X-API-KEY`

Update an existing contact's name, email or phone with PUT /contacts/{id}. Obtain the contact ID from List Chat Contacts or Initialize Chat Contact.

## Path parameters

- `id` string, required

## Request body

- UpdateChatContactRequest
  - `email` string, email, nullable
  - `name` string, nullable
  - `phone` string, nullable

## Response `200`

- union
  - object
    - `message` string, required
    - `data` object, required
      - `type` string, required
      - `id` string, required
      - `attributes` object, required
        - `widget_name` string, nullable, required
        - `widget_id` string, nullable, required
        - `team_id` string, nullable, required
        - `name` string, nullable, required
        - `email` string, nullable, required
        - `phone` string, nullable, required
        - `country_dialing_code` string, nullable, required
        - `bgcolor` string, nullable, required
        - `location` string, nullable, required
        - `browser_type` string, nullable, required
        - `country_code` string, nullable, required
        - `country` string, nullable, required
        - `country_flag` string, nullable, required
        - `country_emoji` string, nullable, required
        - `page_visited` unknown[], required
          - unknown
        - `timezone` string, nullable, required
        - `language` string, nullable, required
        - `ip` string, nullable, required
        - `operating_system` string, nullable, required
        - `online_status` string, nullable, required
        - `last_active_at` string, nullable, required
        - `blocked_at` string, nullable, required
        - `is_name_updated` boolean, required
        - `created_at` string, nullable, required
        - `verified_id` string, nullable, required
        - `verified_email` string, nullable, required
  - object

## Other responses

- `404`: Not found
- `422`: Validation error

---

[API](https://skmtc.dev/chatway/apis/chatway-developer-docs.md) · [All operations](https://skmtc.dev/chatway/apis/chatway-developer-docs/llms.txt) · [OpenAPI document](https://skmtc.dev/chatway/apis/chatway-developer-docs/revisions/ca1a1da291cc?raw)
