> ## 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.

# Request Patient Consent



## OpenAPI

````yaml /openapi.json post /api/v1/patients/{patient_id}/consents/request
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/patients/{patient_id}/consents/request:
    post:
      tags:
        - Clínica
      summary: Request Patient Consent
      operationId: >-
        request_patient_consent_api_v1_patients__patient_id__consents_request_post
      parameters:
        - in: path
          name: patient_id
          required: true
          schema:
            format: uuid
            title: Patient Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RequestConsentIn'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: true
                title: >-
                  Response Request Patient Consent Api V1 Patients  Patient Id 
                  Consents Request Post
                type: object
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - BearerAuth: []
components:
  schemas:
    RequestConsentIn:
      properties:
        guardian_grant_ids:
          anyOf:
            - items:
                format: uuid
                type: string
              maxItems: 10
              type: array
            - type: 'null'
          title: Guardian Grant Ids
        replace_existing:
          default: false
          title: Replace Existing
          type: boolean
        representative_authority_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Representative Authority Id
        require_patient:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Require Patient
      title: RequestConsentIn
      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.