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

# Update Clinic

> ### Overview
Update an existing clinic. Only the fields included in the request body will be updated; all fields are optional.

**Endpoint:** `{{HOST}}/cdr/v1/clinic/{clinic_id}/`

**Method:** `PATCH`

### Path Parameters

| Parameter | Type   | Description       | Required |
| --------- | ------ | ----------------- | -------- |
| clinic_id | string | Clinic's Eka ID   | Yes      |



## OpenAPI

````yaml patch /cdr/v1/clinic/{clinic_id}/
openapi: 3.0.0
info:
  title: Ekacare API & Webhook Documentation
  contact: {}
  version: '1.0'
servers:
  - description: Production
    url: https://api.eka.care
  - description: Stage/Sandbox
    url: https://api.dev.eka.care
security: []
paths:
  /cdr/v1/clinic/{clinic_id}/:
    patch:
      tags:
        - Doctor and clinic API
      summary: Update Clinic
      description: >-
        ### Overview

        Update an existing clinic. Only the fields included in the request body
        will be updated; all fields are optional.


        **Endpoint:** `{{HOST}}/cdr/v1/clinic/{clinic_id}/`


        **Method:** `PATCH`


        ### Path Parameters


        | Parameter | Type   | Description       | Required |

        | --------- | ------ | ----------------- | -------- |

        | clinic_id | string | Clinic's Eka ID   | Yes      |
      operationId: UpdateClinic
      parameters:
        - name: auth
          in: header
          description: >-
            The auth token of the business. It is used to authenticate the
            client. This should be fetched from auth api.
          required: true
          style: simple
          schema:
            type: string
            example: >-
              eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiX2lkIjoiMTIzNDU2IiwiY2xpZW50X2lkIjoiNzg5MCIsImV4dHJhX2ZpZWxkIjoiZXh0cmFfZmllbGRfZGF0YSJ9.q9KzBI6f4l3OyM_EkB5Quq0l9EEMFh5JS-fx3F_PHUM
        - name: clinic_id
          in: path
          description: Clinic's Eka ID
          required: true
          style: simple
          schema:
            type: string
            example: c-ab2c-34f2d-2gwd-2g2g
      requestBody:
        description: Fields to update on the clinic. All fields are optional.
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  example: Sunrise Clinic
                address:
                  type: string
                  example: 123 Main Street, Block A
                partner_id:
                  type: string
                  example: Clinic_321_Indore
                pincode:
                  type: string
                  example: '560001'
                contact:
                  type: string
                  pattern: ^\d{10,11}$
                  example: '9876543210'
                doctor_ids:
                  type: array
                  items:
                    type: string
                  description: >-
                    Add these Eka doctor IDs to the clinic's existing doctor
                    associations
                  example:
                    - do1769174683513
                partner_doctor_ids:
                  type: array
                  items:
                    type: string
                  description: >-
                    Add doctors matching these partner IDs to the clinic's
                    existing doctor associations
                  example:
                    - Part_Doc_1
                city:
                  type: string
                  example: Bangalore
                state:
                  type: string
                  example: Karnataka
            example:
              address: 456 New Street, Block B
              contact: '9876543210'
              doctor_ids:
                - do1769174683513
      responses:
        '200':
          description: OK - Clinic updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: success
                  ekaid:
                    type: string
                    example: c-ab2c-34f2d-2gwd-2g2g
        '400':
          description: Bad Request - Validation failed or clinic_id missing
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: error
                  message:
                    type: string
                    example: Clinic ID is required for PATCH
        '404':
          description: Clinic not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: error
                  message:
                    type: string
                    example: Clinic not found

````