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

# Update patient contact details

> Updates patient-managed contact and next-of-kin fields. Verified identity fields and the primary phone are excluded.



## OpenAPI

````yaml /openapi-patient.yaml patch /patient/me
openapi: 3.1.0
info:
  title: HMIS Patient Mobile API
  version: 1.0.0
  description: >-
    Patient-owned authentication, appointment, clinical record, and billing
    operations.
servers:
  - url: https://jaliprohmis.derrickmugabwa.dev/api/v1
    description: HMIS staging API
security:
  - bearerAuth: []
tags:
  - name: Patient authentication
  - name: Patient profile
  - name: Patient appointments
  - name: Patient records
  - name: Patient billing
paths:
  /patient/me:
    patch:
      tags:
        - Patient profile
      summary: Update patient contact details
      description: >-
        Updates patient-managed contact and next-of-kin fields. Verified
        identity fields and the primary phone are excluded.
      operationId: updatePatientProfile
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProfileUpdateRequest'
      responses:
        '200':
          $ref: '#/components/responses/ObjectResponse'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '422':
          $ref: '#/components/responses/ValidationError'
components:
  schemas:
    ProfileUpdateRequest:
      type: object
      properties:
        email:
          type:
            - string
            - 'null'
          format: email
        secondary_phone:
          type:
            - string
            - 'null'
        address:
          type:
            - string
            - 'null'
        city:
          type:
            - string
            - 'null'
        county:
          type:
            - string
            - 'null'
        country:
          type:
            - string
            - 'null'
        next_of_kin_name:
          type:
            - string
            - 'null'
        next_of_kin_relationship:
          type:
            - string
            - 'null'
        next_of_kin_phone:
          type:
            - string
            - 'null'
    ObjectEnvelope:
      type: object
      properties:
        data:
          type: object
          additionalProperties: true
  responses:
    ObjectResponse:
      description: Patient-owned resource.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ObjectEnvelope'
    Unauthenticated:
      description: Missing, expired, or invalid bearer token.
    Forbidden:
      description: Token lacks the required patient ability or the account is inactive.
    ValidationError:
      description: Request validation failed.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Sanctum patient device token

````