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

# Update customer contact



## OpenAPI

````yaml put /v1/accounts/contacts/{contactId}
openapi: 3.0.0
info:
  title: Thena Platform
  description: The Thena Platform API description
  version: 1.0.0
  contact: {}
servers:
  - url: https://platform.thena.ai
    description: Platform
  - url: http://localhost:8000
    description: Local
security:
  - ApiKey: []
tags: []
paths:
  /v1/accounts/contacts/{contactId}:
    put:
      tags:
        - Accounts
      summary: Update customer contact
      parameters:
        - name: contactId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        description: Customer contact update data
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCustomerContactDto'
      responses:
        '200':
          description: Operation successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerContactResponseDto'
        '400':
          description: Bad request - validation errors or contact ID missing
          content:
            application/json:
              example:
                statusCode: 400
                message: Contact ID is required!
                error: Bad Request
        '404':
          description: Not found - contact not found
          content:
            application/json:
              example:
                statusCode: 404
                message: Contact not found
                error: Not Found
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                statusCode: 500
                message: Internal server error
                error: Internal Server Error
components:
  schemas:
    UpdateCustomerContactDto:
      type: object
      properties:
        firstName:
          type: string
          description: First name of the customer contact
          example: John
        lastName:
          type: string
          description: Last name of the customer contact
          example: Doe
        avatarUrl:
          type: string
          description: Avatar URL of the customer contact
          example: https://example.com/avatar.png
        email:
          type: string
          description: Email of the customer contact
          example: john.doe@example.com
        phoneNumber:
          type: string
          description: Phone number of the customer contact with country code
          example: '+1234567890'
        contactType:
          type: string
          description: Contact type of the customer contact
          example: CT123
        accountIds:
          description: >-
            Account IDs of the customer contact. This will replace the existing
            account IDs of the customer contact
          example:
            - A123
            - A456
          type: array
          items:
            type: string
        metadata:
          type: object
          description: The metadata of the customer contact
        customFieldValues:
          description: The custom field values of the customer contact
          type: array
          items:
            $ref: '#/components/schemas/ExternalCustomFieldValuesDto'
    CustomerContactResponseDto:
      type: object
      properties:
        id:
          type: string
          description: The identifier of the customer contact
        firstName:
          type: string
          description: The first name of the customer contact
        lastName:
          type: string
          description: The last name of the customer contact
        email:
          type: string
          description: The email of the customer contact
        phoneNumber:
          type: string
          description: The phone number of the customer contact
        avatarUrl:
          type: string
          description: The avatar URL of the customer contact
        accounts:
          description: The name of the account
          type: array
          items:
            type: string
        contactTypeId:
          type: string
          description: The identifier of the contact type
        contactType:
          type: string
          description: The name of the contact type
        customFieldValues:
          description: The custom field values
          type: array
          items:
            type: string
        metadata:
          type: object
          description: The metadata of the contact
        createdAt:
          type: string
          description: The creation date of the contact
        updatedAt:
          type: string
          description: The last update date of the contact
      required:
        - id
        - firstName
        - lastName
        - email
        - phoneNumber
        - avatarUrl
        - accounts
        - contactTypeId
        - contactType
        - customFieldValues
        - metadata
        - createdAt
        - updatedAt
    ExternalCustomFieldValuesDto:
      type: object
      properties: {}
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Enter your API key '

````