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

# Update a patient

> Updates an existing patient. Send only the fields you want to change; omitted fields keep their current value. `patientId` is a **query parameter**. The patient must belong to your clinic, otherwise `403`.

Updates an existing patient. Send only the fields you want to change; everything you omit keeps its
current value. The patient is identified by the `patientId` **query parameter**, not by the body.

```bash theme={null}
curl -X PUT "https://api-sandbox.vibrant-america.com/v1/patients?patientId=750123" \
  -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" \
  -d '{ "patientEmail": "jane.doe@example.com" }'
```

`address` can be partial too — send just the parts you're changing and the rest of the address
stays as it was:

```bash theme={null}
  -d '{ "address": { "city": "Oakland" } }'
```

Rules worth knowing:

* At least one field is required; an empty body returns `400`.
* An empty string returns `400` rather than clearing the value. Clearing a field isn't supported —
  send the corrected value instead.
* `patientId` in the body is ignored; the query parameter is what identifies the patient.
* The patient must belong to your clinic, otherwise `403`.

Field names match [List patients](https://developers.vibrant-wellness.com/api-reference/patients/list.md) exactly, so a record you read can be
sent straight back with the parts you changed.


## OpenAPI

````yaml PUT /patients
openapi: 3.1.0
info:
  title: Vibrant Wellness Portal API
  version: 2026-07-01-draft
  description: >-
    Order lab tests and retrieve results programmatically. Authenticate once
    with OAuth2 client credentials, browse the catalog, quote and
    eligibility-check an order, create patients, place orders, and pull results
    with their report status and issues.


    This reference documents the target external contract (v1).
  contact:
    name: Vibrant Wellness Developer Support
    email: portal-api@vibrant-wellness.com
    url: https://developers.vibrant-wellness.com
  license:
    name: Proprietary
servers:
  - url: https://api.vibrant-america.com/v1
    description: Production
  - url: https://api-sandbox.vibrant-america.com/v1
    description: Staging (sandbox)
security:
  - oauth2: []
tags:
  - name: Catalog
    description: Browse orderable tests and panels.
  - name: Pricing
    description: Get an authoritative price and eligibility check before ordering.
  - name: Patients
    description: Create patients.
  - name: Orders
    description: Place lab orders.
  - name: Reports
    description: Retrieve results, report status, and issues.
paths:
  /patients:
    put:
      tags:
        - Patients
      summary: Update a patient
      description: >-
        Updates an existing patient. Send only the fields you want to change;
        omitted fields keep their current value. `patientId` is a **query
        parameter**. The patient must belong to your clinic, otherwise `403`.
      operationId: updatePatient
      parameters:
        - name: patientId
          in: query
          required: true
          schema:
            type: integer
          example: 750123
          description: Id of the patient to update.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePatientRequest'
            example:
              patientPhoneNumber: '4155550199'
              address:
                street: 456 Mission St
                city: San Francisco
                state: CA
                zipCode: '94105'
                country: US
      responses:
        '200':
          description: Patient updated.
          content:
            application/json:
              schema:
                type: object
                properties:
                  patientId:
                    type: integer
                    example: 750123
              example:
                patientId: 750123
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    UpdatePatientRequest:
      type: object
      description: >-
        Send only the fields you want to change; omitted fields keep their
        current value. `address` may also be partial — send just the parts of it
        you are changing. At least one field is required; an empty body returns
        `400`, and an empty string returns `400` rather than clearing the value.
      properties:
        patientFirstName:
          type: string
          example: Jane
        patientLastName:
          type: string
          example: Doe
        patientMiddleName:
          type: string
        patientGender:
          type: string
          enum:
            - Female
            - Male
          example: Female
          description: >-
            Sex assigned at birth — `Female` or `Male`. Laboratory reference
            ranges depend on it, so this is not a gender-identity field and no
            other value is accepted.
        patientDateOfBirth:
          type: string
          format: date
          description: Date of birth, `YYYY-MM-DD`.
          example: '1990-05-21'
        patientEmail:
          type: string
          format: email
          example: jane.doe@example.com
        patientPhoneNumber:
          type: string
          example: '4085550100'
        address:
          $ref: '#/components/schemas/Address'
        guardianEmail:
          type: string
          format: email
        patientHeight:
          type: string
          description: Height, in inches.
          example: '65'
        patientWeight:
          type: string
          example: '150'
    Address:
      type: object
      required:
        - street
        - city
        - state
        - zipCode
        - country
      properties:
        street:
          type: string
          example: 1 Main St
        apt:
          type: string
          description: Apartment, suite or unit.
          example: 5B
        city:
          type: string
          example: San Jose
        state:
          type: string
          example: CA
        zipCode:
          type: string
          example: '95112'
        country:
          type: string
          example: US
    Error:
      type: object
      description: >-
        🚧 Working in progress — this envelope is the contract; not yet returned
        by every endpoint.
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Stable machine-readable error code.
            message:
              type: string
              description: Human-readable explanation.
            requestId:
              type: string
              description: >-
                Identifier for this request. Include it when contacting support.
                Also returned on every response as the X-Request-Id header.
              example: req_01JQ8ZC5X9K2MN
            details:
              type: array
              items:
                type: object
                additionalProperties: true
              description: Optional structured context.
          required:
            - code
            - message
            - requestId
  responses:
    BadRequest:
      description: The request was invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: invalid_request
              message: One or more testCodes were not recognized.
              requestId: req_01JQ8ZC5X9K2MN
              details:
                - unknownCodes:
                    - FOO_BAR
    Unauthorized:
      description: Not authenticated. See Authentication.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: unauthorized
              message: Not authenticated.
              requestId: req_01JQ8ZC5X9K2MN
    Forbidden:
      description: Authenticated, but not permitted for this resource.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: forbidden
              message: Not permitted for this resource.
              requestId: req_01JQ8ZC5X9K2MN
    InternalError:
      description: >-
        Something went wrong on our side. Safe to retry (idempotent endpoints:
        reuse the same placerId).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: internal_error
              message: Unexpected error.
              requestId: req_01JQ8ZC5X9K2MN
  securitySchemes:
    oauth2:
      type: oauth2
      description: >-
        OAuth2 client credentials. Generate a client ID and client secret in the
        Portal, exchange them for an access token, then send `Authorization:
        Bearer <access_token>`. Request the `result` and `report` scopes to read
        results.
      flows:
        clientCredentials:
          tokenUrl: https://api.vibrant-america.com/v1/oauth2/token
          scopes:
            result: Read finalized lab results
            report: Read report status and issues

````

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