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

# Update a client

> Update mutable fields on a client (the end customer of the partner) for the partner the API key belongs to. Only the fields you include in the request body are modified; omitted fields are left as-is. A supplied `emails` or `phoneNumbers` array replaces that whole branch, while an omitted one is left unchanged. `customProperties` accepts the custom properties defined for your partner, keyed by property id; send `null` to clear one. Requires the `client:write` scope.



## OpenAPI

````yaml /openapi.yaml patch /v1/client/{id}
openapi: 3.1.0
info:
  title: ProVision Public API
  version: 1.0.0
  description: >-
    Use the ProVision Public API to integrate with ProVision conversations,
    clients, sites, projects, users, labels, and signal incidents. All endpoints
    accept and return JSON, are authenticated with an `x-api-key` header, and
    are scoped to a single partner tenant.
  contact:
    email: help@onevisionresources.com
    name: OneVision Resources Support
  license:
    name: Proprietary
servers:
  - url: https://connect.provisionapp.io
    description: Production
security: []
tags:
  - name: Conversations
    description: >-
      Support conversations: list and read them, create new ones, update status
      and urgency, read messages, post internal notes, and link sites and
      labels.
  - name: Clients
    description: >-
      The people your team supports: list, read, create, and update clients, and
      link them to their sites.
  - name: Sites
    description: >-
      The addresses your team services: list, read, create, and update sites,
      and apply labels.
  - name: Site files
    description: >-
      Documentation attached to a site, such as plans, photos, and manuals:
      list, download, upload, and delete.
  - name: Projects
    description: >-
      Installation projects at a site. Available to partners with access to
      ProVision Projects.
  - name: Users
    description: The platform users on your team, who can be assignees and message senders.
  - name: User groups
    description: >-
      The groups that bundle permissions for platform users: list the public
      groups available to your team.
  - name: Labels
    description: >-
      The public labels your team can apply to conversations, sites, and
      client-site links.
  - name: Signal incidents
    description: >-
      Raised when a conversation pages someone, and open until an agent resolves
      it: list and resolve them.
  - name: System
    description: Service health, for checking that your API key and network path work.
paths:
  /v1/client/{id}:
    patch:
      tags:
        - Clients
      summary: Update a client
      description: >-
        Update mutable fields on a client (the end customer of the partner) for
        the partner the API key belongs to. Only the fields you include in the
        request body are modified; omitted fields are left as-is. A supplied
        `emails` or `phoneNumbers` array replaces that whole branch, while an
        omitted one is left unchanged. `customProperties` accepts the custom
        properties defined for your partner, keyed by property id; send `null`
        to clear one. Requires the `client:write` scope.
      operationId: patchClient
      parameters:
        - schema:
            allOf:
              - $ref: '#/components/schemas/ClientId'
              - example: ovcid-22222222-2222-4222-8222-222222222222
          required: true
          name: id
          in: path
          description: Id of the client, as returned by `GET /v1/client/list`.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateClientPayload'
      responses:
        '200':
          description: Updated client
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Client'
              example:
                id: ovcid-61f936b9-6f97-438e-856d-1d99c69304f3
                partnerName: Rivera Dental
                name: Jordan Rivera
                firstName: Jordan
                lastName: Rivera
                marketingOptOut: false
                emails:
                  - id: 1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d
                    value: jordan.rivera@example.com
                    label: Work
                    isPrimary: true
                phoneNumbers:
                  - id: 2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e
                    value: '+15125550187'
                    label: Mobile
                    isPrimary: true
                createdAt: '2025-06-18T14:02:11.000Z'
                updatedAt: '2026-10-01T16:45:00.000Z'
                customProperties:
                  ca_preferred_contact: phone
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - OpenApiKeyAuth: []
components:
  schemas:
    ClientId:
      type: string
      pattern: ^ovcid-.*$
    UpdateClientPayload:
      type: object
      properties:
        firstName:
          type: string
          minLength: 1
          example: Sam
        lastName:
          type: string
          minLength: 1
          example: Client
        marketingOptOut:
          type: boolean
        emails:
          type: array
          items:
            $ref: '#/components/schemas/CreateClientEmail'
        phoneNumbers:
          type: array
          items:
            $ref: '#/components/schemas/CreateClientPhoneNumber'
        customProperties:
          $ref: '#/components/schemas/CustomPropertiesWrite'
      additionalProperties: false
    Client:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/ClientId'
        partnerName:
          type: string
        name:
          type: string
        firstName:
          type: string
        lastName:
          type: string
        marketingOptOut:
          type: boolean
        emails:
          type: array
          items:
            $ref: '#/components/schemas/ClientEmail'
        phoneNumbers:
          type: array
          items:
            $ref: '#/components/schemas/ClientPhoneNumber'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        customProperties:
          $ref: '#/components/schemas/CustomProperties'
      required:
        - id
        - name
        - firstName
        - lastName
        - createdAt
        - customProperties
      additionalProperties: false
    ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
      required:
        - error
    CreateClientEmail:
      type: object
      properties:
        value:
          type: string
          format: email
        label:
          type: string
        isPrimary:
          type: boolean
      required:
        - value
      additionalProperties: false
    CreateClientPhoneNumber:
      type: object
      properties:
        value:
          type: string
          minLength: 1
          example: '+15551234567'
        ext:
          type:
            - number
            - 'null'
        label:
          type: string
          example: Mobile
        isPrimary:
          type: boolean
      required:
        - value
      additionalProperties: false
    CustomPropertiesWrite:
      type: object
      additionalProperties: {}
      description: >-
        Custom property values, keyed by property id. Ids and value types come
        from the properties defined for your partner, so this object cannot be
        described field by field here: an unknown id or a value that does not
        match the property type is rejected with 400. Only the ids you send are
        modified — omit a property to leave it untouched. To clear one, send
        `null`; a blank string and an empty array count as empty too, for every
        property type alike.
      example:
        warranty_count: 5
        region: east
        onsite_required: true
    ClientEmail:
      type: object
      properties:
        id:
          type: string
          format: uuid
        value:
          type: string
          format: email
        label:
          type: string
        isPrimary:
          type: boolean
      required:
        - id
        - value
      additionalProperties: false
    ClientPhoneNumber:
      type: object
      properties:
        id:
          type: string
          format: uuid
        value:
          type: string
        ext:
          type: number
        label:
          type: string
        isPrimary:
          type: boolean
      required:
        - id
        - value
      additionalProperties: false
    CustomProperties:
      type: object
      additionalProperties:
        anyOf:
          - type: string
          - type: number
          - type: boolean
          - type: array
            items:
              type: string
      description: >-
        Custom property values, keyed by property id. Ids and value types come
        from the properties defined for your partner, so this object cannot be
        described field by field here — call the custom-property list endpoint
        to resolve an id to its name and type. A property never given a value
        takes the default configured for it, and is left out rather than
        returned as `null` when there is no default either. A value stored
        before its property was changed — an option renamed or removed, the type
        switched — is returned as stored, so it may not match the type the
        property has today; an absent key is the only reliable sign that nothing
        is set.
      example:
        warranty_count: 5
        region: east
        onsite_required: true
    ApiError:
      type: object
      properties:
        code:
          type: string
          description: Machine-readable error code
          example: NOT_FOUND
        message:
          type: string
          description: Human-readable error description
      required:
        - code
        - message
  securitySchemes:
    OpenApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Send the API key in the x-api-key header.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.