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

# Kontakt aktualisieren

> Updates an existing contact. Properties are merged with existing ones after validation.



## OpenAPI

````yaml openapi-v2.json PATCH /v2/contacts/{id}
openapi: 3.1.1
info:
  title: telli API
  version: 2.0.0
  description: telli V2 API
servers:
  - url: https://api.telli.com
    description: prod
security:
  - BearerAuth: []
paths:
  /v2/contacts/{id}:
    patch:
      summary: Update contact
      description: >-
        Updates an existing contact. Properties are merged with existing ones
        after validation.
      operationId: contacts.updateContact
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                externalId:
                  anyOf:
                    - type: string
                      minLength: 1
                    - type: 'null'
                externalUrl:
                  anyOf:
                    - type: string
                      format: uri
                    - type: 'null'
                salutation:
                  anyOf:
                    - type: string
                    - type: 'null'
                firstName:
                  type: string
                  minLength: 1
                  maxLength: 50
                lastName:
                  type: string
                  minLength: 1
                  maxLength: 50
                phoneNumber:
                  type: string
                  minLength: 1
                  maxLength: 20
                timezoneIana:
                  anyOf:
                    - type: string
                    - type: 'null'
                email:
                  anyOf:
                    - type: string
                    - type: 'null'
                properties:
                  type: array
                  items:
                    type: object
                    properties:
                      key:
                        type: string
                      value: {}
                    required:
                      - key
              additionalProperties: false
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  type:
                    const: Contact
                  externalId:
                    anyOf:
                      - type: string
                      - type: 'null'
                  externalUrl:
                    anyOf:
                      - type: string
                      - type: 'null'
                  salutation:
                    anyOf:
                      - type: string
                      - type: 'null'
                  firstName:
                    type: string
                  lastName:
                    type: string
                  phoneNumber:
                    type: string
                  timezoneIana:
                    anyOf:
                      - type: string
                      - type: 'null'
                  email:
                    anyOf:
                      - type: string
                      - type: 'null'
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                  properties:
                    type: array
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                        value: {}
                        dataType:
                          enum:
                            - string
                            - number
                            - boolean
                            - date
                            - datetime
                            - select
                            - multi_select
                            - phone_number
                            - email
                        label:
                          type: string
                        options:
                          type: array
                          items:
                            type: object
                            properties:
                              value:
                                type: string
                              label:
                                type: string
                              description:
                                type: string
                            required:
                              - value
                              - label
                      required:
                        - key
                        - dataType
                required:
                  - id
                  - type
                  - externalId
                  - externalUrl
                  - salutation
                  - firstName
                  - lastName
                  - phoneNumber
                  - timezoneIana
                  - email
                  - createdAt
                  - updatedAt
                  - properties
        '401':
          description: '401'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: UNAUTHORIZED
                      status:
                        const: 401
                      message:
                        type: string
                        default: API key is missing or invalid
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - type: object
                    properties:
                      defined:
                        const: false
                      code:
                        type: string
                      status:
                        type: number
                      message:
                        type: string
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
        '404':
          description: '404'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: CONTACT_NOT_FOUND
                      status:
                        const: 404
                      message:
                        type: string
                        default: Contact not found
                      data:
                        type: object
                        properties:
                          contactId:
                            type: string
                            format: uuid
                        required:
                          - contactId
                    required:
                      - defined
                      - code
                      - status
                      - message
                      - data
                  - type: object
                    properties:
                      defined:
                        const: false
                      code:
                        type: string
                      status:
                        type: number
                      message:
                        type: string
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
        '409':
          description: '409'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: DUPLICATE_EXTERNAL_ID
                      status:
                        const: 409
                      message:
                        type: string
                        default: External ID already exists for this account
                      data:
                        type: object
                        properties:
                          externalId:
                            type: string
                        required:
                          - externalId
                    required:
                      - defined
                      - code
                      - status
                      - message
                      - data
                  - type: object
                    properties:
                      defined:
                        const: false
                      code:
                        type: string
                      status:
                        type: number
                      message:
                        type: string
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
        '422':
          description: '422'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: VALIDATION_ERROR
                      status:
                        const: 422
                      message:
                        type: string
                        default: Validation failed
                      data:
                        type: object
                        properties:
                          issues:
                            type: array
                            items:
                              type: object
                              properties:
                                code:
                                  type: string
                                message:
                                  type: string
                                path:
                                  type: array
                                  items:
                                    anyOf:
                                      - type: string
                                      - type: number
                              required:
                                - code
                                - message
                                - path
                        required:
                          - issues
                    required:
                      - defined
                      - code
                      - status
                      - message
                      - data
                  - type: object
                    properties:
                      defined:
                        const: false
                      code:
                        type: string
                      status:
                        type: number
                      message:
                        type: string
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key authentication. Use your telli API key as the bearer token.

````