> ## Documentation Index
> Fetch the complete documentation index at: https://docs.thoughtly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update contact

> Update an existing contact's name, phone number, email, tags, or custom attributes by ID using the Thoughtly contact update endpoint.



## OpenAPI

````yaml post /contact/{id}/update_info
openapi: 3.0.0
info:
  title: Thoughtly API
  version: 1.0.0
  contact:
    name: Thoughtly Support
    email: support@thoughtly.com
    url: https://thoughtly.com
servers:
  - url: https://api.thoughtly.com
    description: Production server
security:
  - ApiKeyAuth: []
    TeamIdAuth: []
paths:
  /contact/{id}/update_info:
    post:
      tags:
        - contact
      summary: Update contact
      description: >-
        Update an existing **Contact**'s name, phone number, email, or custom
        attributes by ID. Only the fields you provide will be updated.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: The unique ID of the **Contact** you want to update.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                first_name:
                  type: string
                  description: The first name of the **Contact**.
                last_name:
                  type: string
                  description: The last name of the **Contact**.
                phone_number:
                  type: string
                  description: The phone number of the **Contact**.
                name:
                  type: string
                  description: The full name of the **Contact**.
                email:
                  type: string
                  description: The email address associated with the **Contact**.
                country_code:
                  type: string
                  nullable: true
                  description: >-
                    The country code for the **Contact**'s phone number. Used
                    when the phone number does not start with '+'.
                custom_attributes:
                  type: array
                  items:
                    type: object
                    properties:
                      attribute_id:
                        type: string
                        description: The ID of the custom attribute to update.
                      value:
                        description: The new value for the custom attribute.
                    required:
                      - attribute_id
                  description: Custom attributes to update on the **Contact**.
              additionalProperties: false
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericResponse'
        '404':
          description: Contact not found
components:
  schemas:
    GenericResponse:
      type: object
      properties:
        error:
          type: object
          nullable: true
          description: >-
            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:
          type: object
          additionalProperties: true
          description: >-
            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.
      required:
        - data
      description: >-
        The generic response format for all API requests. This structure ensures
        consistency in how success and error information is returned to the
        caller.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-token
      description: >-
        API key for the user making the request. This can be found via the
        [Developer Settings](https://app.thoughtly.com/settings/developer) page
        in the dashboard.
    TeamIdAuth:
      type: apiKey
      in: header
      name: team_id
      description: >-
        Team identifier, used to scope requests to a specific team. This can be
        found via the [Developer
        Settings](https://app.thoughtly.com/settings/developer) page in the
        dashboard.

````