> ## Documentation Index
> Fetch the complete documentation index at: https://openphone-dev.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a contact by ID

> Modify an existing contact in your Quo workspace using the contact's unique identifier. This endpoint replaces the contact rather than merging into it: any defaultFields.emails, defaultFields.phoneNumbers or customFields you omit from the request body is deleted on the contact. Always send the full set of fields, emails, and phone numbers you want the contact to have, not just the ones you're changing.



## OpenAPI

````yaml https://openphone-public-api-dev.s3.us-west-2.amazonaws.com/public/openphone-public-api-v1-dev.json patch /v1/contacts/{id}
openapi: 3.1.0
info:
  title: Quo Public API
  version: 1.0.0
  description: API for connecting with Quo.
  contact:
    name: Quo Support
    email: support@quo.com
    url: https://support.quo.com/
  termsOfService: https://www.quo.com/terms
servers:
  - description: Development server
    url: https://dev-public-api.openphone.dev
security:
  - apiKey: []
tags:
  - description: Operations related to the organization's A2P registration
    name: A2P Registration
  - description: Operations related to calls placed by an AI agent
    name: Agent Calls
  - description: Operations related to text conversations held by an AI agent
    name: Agent Conversations
  - description: Operations related to calls
    name: Calls
  - description: >-
      Operations related to call summaries, including AI-generated summaries and
      Sona voice assistant summaries
    name: Call Summaries
  - description: >-
      Operations related to call transcripts, including AI-generated transcripts
      and Sona voice assistant transcripts
    name: Call Transcripts
  - description: Operations related to contacts
    name: Contacts
  - description: Operations related to contact shares
    name: Contact Shares
  - description: Operations related to contact notes
    name: Contact Notes
  - description: Operations related to contact properties
    name: Contact Properties
  - description: Operations related to conversations
    name: Conversations
  - description: Operations related to workspace invitations
    name: Invites
  - description: Operations related to text messages
    name: Messages
  - description: Operations related to the organization
    name: Organization
  - description: Operations related to phone numbers
    name: Phone Numbers
  - description: Operations related to users
    name: Users
  - description: Operations related to webhooks
    name: Webhooks
  - description: >-
      Operations related to webhook events, including delivery history and test
      events
    name: Webhook Events
paths:
  /v1/contacts/{id}:
    patch:
      tags:
        - Contacts
      summary: Update a contact by ID
      description: >-
        Modify an existing contact in your Quo workspace using the contact's
        unique identifier. This endpoint replaces the contact rather than
        merging into it: any defaultFields.emails, defaultFields.phoneNumbers or
        customFields you omit from the request body is deleted on the contact.
        Always send the full set of fields, emails, and phone numbers you want
        the contact to have, not just the ones you're changing.
      operationId: updateContactById_v1
      parameters:
        - in: path
          name: id
          required: true
          schema:
            description: The unique identifier of the contact.
            examples:
              - 66d0d87e8dc1211467372303
            type: string
            pattern: ^(.*)$
          example: 66d0d87e8dc1211467372303
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                externalId:
                  anyOf:
                    - type: string
                      description: >-
                        A unique identifier from an external system that can
                        optionally be supplied when creating a contact. This ID
                        is used to associate the contact with records in other
                        systems and is required for retrieving the contact later
                        via the "List Contacts" endpoint. Ensure the
                        `externalId` is unique and consistent across systems for
                        accurate cross-referencing.
                      examples:
                        - 664d0db69fcac7cf2e6ec
                      minLength: 1
                      maxLength: 75
                      example: 664d0db69fcac7cf2e6ec
                    - type: 'null'
                source:
                  anyOf:
                    - type: string
                      description: >-
                        Indicates how the contact was created or where it
                        originated from.
                      examples:
                        - public-api
                      minLength: 1
                      maxLength: 75
                      example: public-api
                    - type: 'null'
                sourceUrl:
                  anyOf:
                    - type: string
                      description: A link to the contact in the source system.
                      format: uri
                      examples:
                        - https://openphone.co/contacts/664d0db69fcac7cf2e6ec
                      minLength: 1
                      maxLength: 200
                      example: https://openphone.co/contacts/664d0db69fcac7cf2e6ec
                    - type: 'null'
                defaultFields:
                  type: object
                  properties:
                    company:
                      anyOf:
                        - type: string
                          description: The contact's company name.
                          examples:
                            - Quo
                          example: Quo
                        - type: 'null'
                    emails:
                      type: array
                      items:
                        type: object
                        required:
                          - name
                          - value
                        properties:
                          name:
                            type: string
                            description: The name for the contact's email address.
                            examples:
                              - company email
                            example: company email
                          value:
                            anyOf:
                              - type: string
                                description: >-
                                  The contact's email address. Setting this to
                                  null removes the email item from the contact.
                                  Note that omitting the `emails` array entirely
                                  from a PATCH request also removes all of the
                                  contact's existing emails, since this endpoint
                                  replaces the full list rather than merging
                                  into it.
                                examples:
                                  - info@openphone.com
                                example: info@openphone.com
                              - type: 'null'
                          id:
                            type: string
                            description: The unique identifier for the contact email field.
                            examples:
                              - acb123
                            example: acb123
                    firstName:
                      anyOf:
                        - type: string
                          description: The contact's first name.
                          examples:
                            - John
                          example: John
                        - type: 'null'
                    lastName:
                      anyOf:
                        - type: string
                          description: The contact's last name.
                          examples:
                            - Doe
                          example: Doe
                        - type: 'null'
                    phoneNumbers:
                      type: array
                      items:
                        type: object
                        required:
                          - name
                          - value
                        properties:
                          name:
                            type: string
                            description: The name of the contact's phone number.
                            examples:
                              - company phone
                            example: company phone
                          value:
                            anyOf:
                              - type: string
                                description: >-
                                  The contact's phone number. Setting this to
                                  null removes the phone number item from the
                                  contact. Note that omitting the `phoneNumbers`
                                  array entirely from a PATCH request also
                                  removes all of the contact's existing phone
                                  numbers, since this endpoint replaces the full
                                  list rather than merging into it.
                                examples:
                                  - '+15555555555'
                                example: '+15555555555'
                              - type: 'null'
                          id:
                            type: string
                            description: >-
                              The unique identifier of the contact phone number
                              field.
                            examples:
                              - acb123
                            example: acb123
                    role:
                      anyOf:
                        - type: string
                          description: The contact's role.
                          examples:
                            - Sales
                          example: Sales
                        - type: 'null'
                customFields:
                  type: array
                  items:
                    allOf:
                      - type: object
                        properties:
                          key:
                            type: string
                            description: The identifying key for contact custom field.
                            examples:
                              - inbound-lead
                            example: inbound-lead
                          id:
                            type: string
                            description: >-
                              The unique identifier for the contact custom
                              field.
                            examples:
                              - 66d0d87d534de8fd1c433cec3
                            example: 66d0d87d534de8fd1c433cec3
                      - anyOf:
                          - type: object
                            required:
                              - value
                            properties:
                              value:
                                anyOf:
                                  - type: array
                                    items:
                                      type: string
                                  - type: 'null'
                                description: >-
                                  Value defined for the multi select type custom
                                  field.
                                examples:
                                  - - option1
                                    - option2
                                example:
                                  - option1
                                  - option2
                          - type: object
                            required:
                              - value
                            properties:
                              value:
                                anyOf:
                                  - type: string
                                  - type: 'null'
                                description: >-
                                  Value defined for the address, string, or url
                                  type custom field.
                                examples:
                                  - 123 Main St
                                example: 123 Main St
                          - type: object
                            required:
                              - value
                            properties:
                              value:
                                anyOf:
                                  - type: boolean
                                  - type: 'null'
                                description: >-
                                  Value defined for the boolean type custom
                                  field.
                                examples:
                                  - 'false'
                                example: 'false'
                          - type: object
                            required:
                              - value
                            properties:
                              value:
                                anyOf:
                                  - type: string
                                    format: date-time
                                  - type: 'null'
                                description: Value defined for the date type custom fields.
                                examples:
                                  - '2024-09-11T04:00:00.000Z'
                                example: '2024-09-11T04:00:00.000Z'
                          - type: object
                            required:
                              - value
                            properties:
                              value:
                                anyOf:
                                  - type: number
                                  - type: 'null'
                                description: Value for the number custom field.
                                examples:
                                  - '424242'
                                example: '424242'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: object
                    required:
                      - id
                      - externalId
                      - source
                      - sourceUrl
                      - defaultFields
                      - customFields
                      - createdAt
                      - updatedAt
                      - createdByUserId
                    properties:
                      id:
                        description: The unique identifier of the contact.
                        examples:
                          - 664d0db69fcac7cf2e6ec
                        example: 664d0db69fcac7cf2e6ec
                        type: string
                        pattern: ^(.*)$
                      externalId:
                        anyOf:
                          - type: string
                            description: >-
                              A unique identifier from an external system that
                              can optionally be supplied when creating a
                              contact. This ID is used to associate the contact
                              with records in other systems and is required for
                              retrieving the contact later via the "List
                              Contacts" endpoint. Ensure the `externalId` is
                              unique and consistent across systems for accurate
                              cross-referencing.
                            examples:
                              - 664d0db69fcac7cf2e6ec
                            minLength: 1
                            maxLength: 75
                            example: 664d0db69fcac7cf2e6ec
                          - type: 'null'
                      source:
                        anyOf:
                          - type: string
                            description: >-
                              Indicates how the contact was created or where it
                              originated from.
                            examples:
                              - public-api
                            minLength: 1
                            maxLength: 75
                            example: public-api
                          - type: 'null'
                      sourceUrl:
                        anyOf:
                          - type: string
                            description: A link to the contact in the source system.
                            format: uri
                            examples:
                              - >-
                                https://openphone.co/contacts/664d0db69fcac7cf2e6ec
                            minLength: 1
                            maxLength: 200
                            example: >-
                              https://openphone.co/contacts/664d0db69fcac7cf2e6ec
                          - type: 'null'
                      defaultFields:
                        type: object
                        required:
                          - company
                          - emails
                          - firstName
                          - lastName
                          - phoneNumbers
                          - role
                        properties:
                          company:
                            anyOf:
                              - type: string
                                description: The contact's company name.
                                examples:
                                  - Quo
                                example: Quo
                              - type: 'null'
                          emails:
                            type: array
                            items:
                              type: object
                              required:
                                - name
                                - value
                              properties:
                                name:
                                  type: string
                                  description: The name for the contact's email address.
                                  examples:
                                    - company email
                                  example: company email
                                value:
                                  anyOf:
                                    - type: string
                                      description: The contact's email address.
                                      examples:
                                        - abc@example.com
                                      example: abc@example.com
                                    - type: 'null'
                                id:
                                  type: string
                                  description: >-
                                    The unique identifier for the contact email
                                    field.
                                  examples:
                                    - acb123
                                  example: acb123
                          firstName:
                            anyOf:
                              - type: string
                                description: The contact's first name.
                                examples:
                                  - John
                                example: John
                              - type: 'null'
                          lastName:
                            anyOf:
                              - type: string
                                description: The contact's last name.
                                examples:
                                  - Doe
                                example: Doe
                              - type: 'null'
                          phoneNumbers:
                            type: array
                            items:
                              type: object
                              required:
                                - name
                                - value
                              properties:
                                name:
                                  type: string
                                  description: The name of the contact's phone number.
                                  examples:
                                    - company phone
                                  example: company phone
                                value:
                                  anyOf:
                                    - type: string
                                      description: The contact's phone number.
                                      examples:
                                        - '+12345678901'
                                      example: '+12345678901'
                                    - type: 'null'
                                id:
                                  type: string
                                  description: >-
                                    The unique identifier of the contact phone
                                    number field.
                                  examples:
                                    - acb123
                                  example: acb123
                          role:
                            anyOf:
                              - type: string
                                description: The contact's role.
                                examples:
                                  - Sales
                                example: Sales
                              - type: 'null'
                      customFields:
                        type: array
                        items:
                          allOf:
                            - type: object
                              required:
                                - name
                              properties:
                                name:
                                  type: string
                                  description: >-
                                    The name of the custom contact field. This
                                    name is set by users in the Quo interface
                                    when the custom field is created.
                                  examples:
                                    - Inbound Lead
                                  example: Inbound Lead
                                key:
                                  type: string
                                  description: >-
                                    The identifying key for contact custom
                                    field.
                                  examples:
                                    - inbound-lead
                                  example: inbound-lead
                            - anyOf:
                                - type: object
                                  required:
                                    - type
                                    - value
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - multi-select
                                    value:
                                      anyOf:
                                        - type: array
                                          items:
                                            type: string
                                        - type: 'null'
                                      description: >-
                                        Value defined for the multi select type
                                        custom field.
                                      examples:
                                        - - option1
                                          - option2
                                      example:
                                        - option1
                                        - option2
                                - type: object
                                  required:
                                    - type
                                    - value
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - address
                                        - string
                                        - url
                                    value:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: >-
                                        Value defined for the address, string,
                                        or url type custom field.
                                      examples:
                                        - 123 Main St
                                      example: 123 Main St
                                - type: object
                                  required:
                                    - type
                                    - value
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - boolean
                                    value:
                                      anyOf:
                                        - type: boolean
                                        - type: 'null'
                                      description: >-
                                        Value defined for the boolean type
                                        custom field.
                                      examples:
                                        - 'false'
                                      example: 'false'
                                - type: object
                                  required:
                                    - type
                                    - value
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - date
                                    value:
                                      anyOf:
                                        - type: string
                                          format: date-time
                                        - type: 'null'
                                      description: >-
                                        Value defined for the date type custom
                                        fields.
                                      examples:
                                        - '2024-09-11T04:00:00.000Z'
                                      example: '2024-09-11T04:00:00.000Z'
                                - type: object
                                  required:
                                    - type
                                    - value
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - number
                                    value:
                                      anyOf:
                                        - type: number
                                        - type: 'null'
                                      description: Value for the number custom field.
                                      examples:
                                        - '424242'
                                      example: '424242'
                      createdAt:
                        description: Timestamp of contact creation in ISO 8601 format.
                        examples:
                          - '2022-01-01T00:00:00Z'
                        example: '2022-01-01T00:00:00Z'
                        type: string
                        format: date-time
                      updatedAt:
                        description: Timestamp of last contact update in ISO 8601 format.
                        examples:
                          - '2022-01-01T00:00:00Z'
                        example: '2022-01-01T00:00:00Z'
                        type: string
                        format: date-time
                      createdByUserId:
                        description: >-
                          The unique identifier of the user who created the
                          contact.
                        examples:
                          - US123abc
                        example: US123abc
                        type: string
                        pattern: ^US(.*)$
        '400':
          description: Bad Request | Invalid Custom Field Item
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/BadRequestError2'
                  - $ref: '#/components/schemas/InvalidCustomFieldItemError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    required:
                      - error
                    properties:
                      error:
                        type: object
                        required:
                          - message
                          - key
                        properties:
                          message:
                            type: string
                          key:
                            type: string
                            const: Unauthorized
                          trace:
                            type: string
                  - type: object
                    required:
                      - message
                      - code
                      - status
                      - docs
                      - title
                    properties:
                      message:
                        type: string
                      code:
                        type: string
                        const: '0800401'
                      status:
                        type: number
                        const: 401
                      docs:
                        type: string
                        const: https://quo.com/docs
                      title:
                        type: string
                        const: Unauthorized
                      trace:
                        type: string
                      errors:
                        type: array
                        items:
                          type: object
                          required:
                            - path
                            - message
                            - schema
                          properties:
                            path:
                              type: string
                            message:
                              type: string
                            value: {}
                            schema:
                              type: object
                              required:
                                - type
                              properties:
                                type:
                                  type: string
        '403':
          description: Forbidden | Not Phone Number User
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/ForbiddenError2'
                  - $ref: '#/components/schemas/NotPhoneNumberUserError2'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - code
                  - status
                  - docs
                  - title
                properties:
                  message:
                    type: string
                  code:
                    type: string
                    const: '0800404'
                  status:
                    type: number
                    const: 404
                  docs:
                    type: string
                    const: https://quo.com/docs
                  title:
                    type: string
                    const: Not Found
                  trace:
                    type: string
                  errors:
                    type: array
                    items:
                      type: object
                      required:
                        - path
                        - message
                        - schema
                      properties:
                        path:
                          type: string
                        message:
                          type: string
                        value: {}
                        schema:
                          type: object
                          required:
                            - type
                          properties:
                            type:
                              type: string
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - code
                  - status
                  - docs
                  - title
                properties:
                  message:
                    type: string
                  code:
                    type: string
                    const: '0800409'
                  status:
                    type: number
                    const: 409
                  docs:
                    type: string
                    const: https://quo.com/docs
                  title:
                    type: string
                    const: Conflict
                  trace:
                    type: string
                  errors:
                    type: array
                    items:
                      type: object
                      required:
                        - path
                        - message
                        - schema
                      properties:
                        path:
                          type: string
                        message:
                          type: string
                        value: {}
                        schema:
                          type: object
                          required:
                            - type
                          properties:
                            type:
                              type: string
        '500':
          description: Unexpected Error | Unknown Error
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/UnexpectedError7'
                  - $ref: '#/components/schemas/UnknownError7'
      security:
        - apiKey: []
components:
  schemas:
    BadRequestError2:
      type: object
      required:
        - message
        - code
        - status
        - docs
        - title
      properties:
        message:
          type: string
        code:
          type: string
          const: '0800400'
        status:
          type: number
          const: 400
        docs:
          type: string
          const: https://quo.com/docs
        title:
          type: string
          const: Bad Request
        trace:
          type: string
        errors:
          type: array
          items:
            type: object
            required:
              - path
              - message
              - schema
            properties:
              path:
                type: string
              message:
                type: string
              value: {}
              schema:
                type: object
                required:
                  - type
                properties:
                  type:
                    type: string
      title: Bad Request
    InvalidCustomFieldItemError:
      type: object
      required:
        - message
        - code
        - status
        - docs
        - title
      properties:
        message:
          type: string
        code:
          type: string
          const: '0801400'
        status:
          type: number
          const: 400
        docs:
          type: string
          const: https://quo.com/docs
        title:
          type: string
          const: Invalid Custom Field Item
        trace:
          type: string
        errors:
          type: array
          items:
            type: object
            required:
              - path
              - message
              - schema
            properties:
              path:
                type: string
              message:
                type: string
              value: {}
              schema:
                type: object
                required:
                  - type
                properties:
                  type:
                    type: string
      title: Invalid Custom Field Item
    ForbiddenError2:
      type: object
      required:
        - message
        - code
        - status
        - docs
        - title
      properties:
        message:
          type: string
        code:
          type: string
          const: '0800403'
        status:
          type: number
          const: 403
        docs:
          type: string
          const: https://quo.com/docs
        title:
          type: string
          const: Forbidden
        trace:
          type: string
        errors:
          type: array
          items:
            type: object
            required:
              - path
              - message
              - schema
            properties:
              path:
                type: string
              message:
                type: string
              value: {}
              schema:
                type: object
                required:
                  - type
                properties:
                  type:
                    type: string
      title: Forbidden
    NotPhoneNumberUserError2:
      type: object
      required:
        - message
        - code
        - status
        - docs
        - title
        - description
      properties:
        message:
          type: string
        code:
          type: string
          const: '0801403'
        status:
          type: number
          const: 403
        docs:
          type: string
          const: https://quo.com/docs
        title:
          type: string
          const: Not Phone Number User
        trace:
          type: string
        errors:
          type: array
          items:
            type: object
            required:
              - path
              - message
              - schema
            properties:
              path:
                type: string
              message:
                type: string
              value: {}
              schema:
                type: object
                required:
                  - type
                properties:
                  type:
                    type: string
        description:
          type: string
          const: Not Phone Number User
      title: Not Phone Number User
    UnexpectedError7:
      type: object
      required:
        - message
        - code
        - status
        - docs
        - title
      properties:
        message:
          type: string
        code:
          type: string
          const: '0800500'
        status:
          type: number
          const: 500
        docs:
          type: string
          const: https://quo.com/docs
        title:
          type: string
          const: Unexpected
        trace:
          type: string
        errors:
          type: array
          items:
            type: object
            required:
              - path
              - message
              - schema
            properties:
              path:
                type: string
              message:
                type: string
              value: {}
              schema:
                type: object
                required:
                  - type
                properties:
                  type:
                    type: string
      title: Unexpected Error
    UnknownError7:
      type: object
      required:
        - message
        - code
        - status
        - docs
        - title
      properties:
        message:
          type: string
        code:
          type: string
          const: '0801500'
        status:
          type: number
          const: 500
        docs:
          type: string
          const: https://quo.com/docs
        title:
          type: string
          const: Unknown
        trace:
          type: string
        errors:
          type: array
          items:
            type: object
            required:
              - path
              - message
              - schema
            properties:
              path:
                type: string
              message:
                type: string
              value: {}
              schema:
                type: object
                required:
                  - type
                properties:
                  type:
                    type: string
      title: Unknown Error
  securitySchemes:
    apiKey:
      in: header
      name: Authorization
      type: apiKey

````