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

# Create a patient client relationship

> Creates a new active patient client relationship between a clinic client and clinic patient.



## OpenAPI

````yaml post /ext/v2/patient-client-relationships/
openapi: 3.1.0
info:
  description: ''
  title: NinjaAPI
  version: 2.0.0
servers:
  - url: https://connect.vetcove.com/
security: []
paths:
  /ext/v2/patient-client-relationships/:
    post:
      tags:
        - Clients And Patients
      summary: Create a patient client relationship
      description: >-
        Creates a new active patient client relationship between a clinic client
        and clinic patient.
      operationId: patient_client_relationships_create
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/ExternalPatientClientRelationshipCreateSchema
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalPatientClientRelationshipSchema'
          description: Created
      security:
        - ExternalAPIAuth: []
components:
  schemas:
    ExternalPatientClientRelationshipCreateSchema:
      properties:
        clinic_client_id:
          description: The ID of the clinic client.
          title: Clinic Client Id
          type: integer
        clinic_patient_id:
          description: The ID of the clinic patient.
          title: Clinic Patient Id
          type: integer
        relationship_kind:
          allOf:
            - $ref: '#/components/schemas/PatientClientRelationshipKind'
          default: OWNER
          description: The kind of relationship. Defaults to OWNER.
      required:
        - clinic_client_id
        - clinic_patient_id
      title: ExternalPatientClientRelationshipCreateSchema
      type: object
    ExternalPatientClientRelationshipSchema:
      description: >-
        A relationship between a clinic client (pet owner) and a clinic patient
        (pet).
      properties:
        clinic_client_id:
          description: The ID of the clinic client in this relationship.
          title: Clinic Client Id
          type: integer
        clinic_id:
          description: The ID of the clinic this relationship belongs to.
          title: Clinic Id
          type: integer
        clinic_patient_id:
          description: The ID of the clinic patient in this relationship.
          title: Clinic Patient Id
          type: integer
        created:
          description: The datetime this object was created.
          format: date-time
          title: Created
          type: string
        deleted:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: The datetime this record was soft deleted.
          title: Deleted
        id:
          title: Id
          type: integer
        is_active:
          description: Whether this relationship is currently active.
          title: Is Active
          type: boolean
        is_deleted:
          description: Whether this record is soft deleted or not.
          title: Is Deleted
          type: boolean
        modified:
          description: >-
            The datetime this object was last modified; changes to related
            entities will not update this field.
          format: date-time
          title: Modified
          type: string
        relationship_kind:
          $ref: '#/components/schemas/PatientClientRelationshipKind'
      required:
        - created
        - modified
        - is_deleted
        - deleted
        - id
        - clinic_client_id
        - clinic_patient_id
        - relationship_kind
        - is_active
        - clinic_id
      title: PatientClientRelationship
      type: object
    PatientClientRelationshipKind:
      enum:
        - OWNER
      title: PatientClientRelationshipKind
      type: string
  securitySchemes:
    ExternalAPIAuth:
      scheme: bearer
      type: http

````