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

# Update an appointment



## OpenAPI

````yaml /openapi/ext-api-v1.json patch /appointments/{appointmentId}
openapi: 3.0.0
info:
  title: Healos External API
  version: 1.0.0
  description: >-
    External API for managing patients, documents, and appointments, listing
    providers, and for pulling clinical notes (with transcript and patient
    context).
servers:
  - url: https://api.healos.ai/ext-api/v1
    description: Production
  - url: http://localhost:8787/ext-api/v1
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /appointments/{appointmentId}:
    patch:
      tags:
        - Appointments
      summary: Update an appointment
      parameters:
        - schema:
            type: string
            description: Appointment UUID
            example: f47ac10b-58cc-4372-a567-0e02b2c3d479
          required: true
          name: appointmentId
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAppointmentBody'
      responses:
        '200':
          description: Appointment updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppointmentResponse'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Insufficient scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Patient not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitError'
components:
  schemas:
    UpdateAppointmentBody:
      type: object
      properties:
        patient_id:
          type: string
          pattern: ^\d+$
          description: Patient ID (numeric)
          example: '1743552000000'
        provider_id:
          type: string
          minLength: 1
          description: >-
            Reassign this appointment to a different provider (see GET
            /providers). Must be a provider in your organization.
          example: aaaaaaa1-0000-0000-0000-000000000001
        appointment_type:
          type: string
          example: Follow-up
        visit_type:
          type: string
          enum:
            - Telehealth
            - In-Person
            - Both
            - Other
          example: In-Person
        start_at:
          type: string
          format: date-time
          description: ISO 8601 datetime
          example: '2026-04-15T14:00:00.000Z'
        duration_minutes:
          type: number
          minimum: 1
          example: 50
        notes:
          type: string
          example: Updated notes
        status:
          type: string
          enum:
            - SCHEDULED
            - COMPLETED
            - CANCELLED
            - NO_SHOW
          example: COMPLETED
    AppointmentResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Appointment'
      required:
        - data
    ValidationError:
      type: object
      properties:
        error:
          type: string
        details:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
      required:
        - error
    Error:
      type: object
      properties:
        error:
          type: string
      required:
        - error
    RateLimitError:
      type: object
      properties:
        error:
          type: string
          example: Rate limit exceeded. Please retry after the window resets.
      required:
        - error
    Appointment:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: f47ac10b-58cc-4372-a567-0e02b2c3d479
        patient_id:
          type: string
          description: Patient ID
          example: '1743552000000'
        patient_name:
          type: string
          example: Maria Santos
        provider_id:
          type: string
          nullable: true
          description: >-
            Internal id of the provider this appointment belongs to (see GET
            /providers).
          example: aaaaaaa1-0000-0000-0000-000000000001
        provider_name:
          type: string
          nullable: true
          description: Provider display name
          example: Dr. Alice Nguyen
        provider_npi:
          type: string
          nullable: true
          description: Provider's individual (type-I) NPI, when recorded.
          example: '1234567890'
        appointment_type:
          type: string
          example: Initial Evaluation
        visit_type:
          type: string
          enum:
            - Telehealth
            - In-Person
            - Both
            - Other
          example: Telehealth
        start_at:
          type: string
          description: ISO 8601 datetime
          example: '2026-04-15T14:00:00.000Z'
        duration_minutes:
          type: number
          example: 50
        notes:
          type: string
          nullable: true
          example: New patient intake. Please complete forms beforehand.
        status:
          type: string
          enum:
            - SCHEDULED
            - COMPLETED
            - CANCELLED
            - NO_SHOW
          example: SCHEDULED
        created_at:
          type: string
          description: ISO 8601 datetime
          example: '2026-04-01T10:00:00.000Z'
        updated_at:
          type: string
          description: ISO 8601 datetime
          example: '2026-04-01T10:00:00.000Z'
        repeat_rule:
          $ref: '#/components/schemas/RepeatRule'
        external_id:
          type: string
          nullable: true
          description: Caller-supplied external identifier (immutable once set)
          example: PARTNER-APPT-789
      required:
        - id
        - patient_id
        - patient_name
        - provider_id
        - provider_name
        - provider_npi
        - appointment_type
        - visit_type
        - start_at
        - duration_minutes
        - notes
        - status
        - created_at
        - updated_at
        - repeat_rule
        - external_id
    RepeatRule:
      type: object
      nullable: true
      properties:
        frequency:
          type: string
          example: WEEKLY
        interval:
          type: number
          example: 1
        end_date:
          type: string
          nullable: true
          example: '2026-07-15'
      required:
        - frequency
        - interval
        - end_date
      description: Recurrence rule, if any
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key obtained from /api/v1/ext-api-keys

````