---
title: "Update contact"
method: POST
path: "/contact/{id}/update_info"
tags: ["contact"]
---

# Update contact

`POST /contact/{id}/update_info`

Update an existing **Contact**'s name, phone number, email, or custom attributes by ID. Only the fields you provide will be updated.

## Path parameters

- `id` string, required

## Request body

- object
  - `first_name` string — The first name of the **Contact**.
  - `last_name` string — The last name of the **Contact**.
  - `phone_number` string — The phone number of the **Contact**.
  - `name` string — The full name of the **Contact**.
  - `email` string — The email address associated with the **Contact**.
  - `country_code` string, nullable — The country code for the **Contact**'s phone number. Used when the phone number does not start with '+'.
  - `custom_attributes` object[] — Custom attributes to update on the **Contact**.
    - `attribute_id` string, required — The ID of the custom attribute to update.
    - `value` unknown

## Response `200`

Successful response

- GenericResponse — The generic response format for all API requests. This structure ensures consistency in how success and error information is returned to the caller.
  - `error` object, nullable — An object containing error details, if any. This field will be populated if the API request fails or encounters an error. If the request is successful, this field will be null or omitted.
  - `data` object, required — Contains the response data for the successful request. This field will vary based on the specific API endpoint being called and contains the main data returned from the API. For example, it may include information about a created contact, agent, or webhook subscription.

## Other responses

- `404` — Contact not found

---

[API](https://skmtc.dev/thoughtly/apis/thoughtly-api.md) · [All operations](https://skmtc.dev/thoughtly/apis/thoughtly-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/thoughtly/thoughtly-api/revisions/75a10c67731a/schema)
