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

# Patient Session Action



## OpenAPI

````yaml /openapi.json post /api/v1/patient/workspace/sessions/{session_id}/action
openapi: 3.1.0
info:
  description: >-
    Especificación pública de la API de ViVi. Incluye solo los endpoints del
    dominio de la práctica: agenda, pacientes, conversaciones, clínica y cuenta.
  title: ViVi
  version: 0.1.0
servers:
  - url: https://api.holavivi.app
security: []
tags:
  - name: Agenda
  - name: Pacientes
  - name: Conversaciones
  - name: Clínica
  - name: Cuenta y panel
paths:
  /api/v1/patient/workspace/sessions/{session_id}/action:
    post:
      tags:
        - Pacientes
      summary: Patient Session Action
      operationId: >-
        patient_session_action_api_v1_patient_workspace_sessions__session_id__action_post
      parameters:
        - in: path
          name: session_id
          required: true
          schema:
            format: uuid
            title: Session Id
            type: string
        - in: header
          name: Idempotency-Key
          required: true
          schema:
            maxLength: 200
            minLength: 1
            title: Idempotency-Key
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatientSessionActionIn'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: true
                title: >-
                  Response Patient Session Action Api V1 Patient Workspace
                  Sessions  Session Id  Action Post
                type: object
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - BearerAuth: []
components:
  schemas:
    PatientSessionActionIn:
      properties:
        automatic_cancellation_ack:
          anyOf:
            - maxLength: 64
              type: string
            - type: 'null'
          title: Automatic Cancellation Ack
        expected_version:
          minimum: 1
          title: Expected Version
          type: integer
        kind:
          enum:
            - confirm
            - reschedule
            - cancel
          title: Kind
          type: string
        starts_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Starts At
      required:
        - kind
        - expected_version
      title: PatientSessionActionIn
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    BearerAuth:
      description: >-
        La credencial de sesión del consultorio o del paciente, o una clave API
        del consultorio, como token Bearer.
      scheme: bearer
      type: http

````

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