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

# Update a contact by ID

> Updates a specified contact.



## OpenAPI

````yaml PATCH /contacts/{contactId}
openapi: 3.0.0
info:
  title: Cogfy Messenger Public API
  version: 1.0.0
  description: API for interacting with the Cogfy Messenger platform
servers:
  - url: https://messenger-public-api.cogfy.com
    description: Production server
  - url: http://localhost:53981
    description: Local server
security:
  - ApiKeyAuth: []
tags: []
paths:
  /contacts/{contactId}:
    patch:
      tags:
        - Contacts
      summary: Update a contact by ID
      description: Updates a specified contact.
      parameters:
        - in: path
          name: contactId
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                firstName:
                  type: string
                lastName:
                  type: string
                email:
                  type: string
                  format: email
                phone:
                  type: string
                occupation:
                  type: string
                gender:
                  type: string
                birthdate:
                  type: string
                  format: date
                age:
                  type: integer
                notes:
                  type: string
                customProperties:
                  type: object
                  additionalProperties:
                    type: string
                  description: Custom properties associated with the contact
                  example:
                    Favorite Color: Blue
      responses:
        '200':
          description: Contact updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
        '404':
          description: Contact not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message indicating the contact was not found.
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api-key

````