v1

latestOpenAPI 3.0.32026-07-26229361630.0 KB
Doctor and clinic API

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

ParameterTypeDescriptionRequired
clinic_idstringClinic's Eka IDYes
patch/cdr/v1/clinic/{clinic_id}/

Path parameters

clinic_idstring required
Example:c-ab2c-34f2d-2gwd-2g2g

Clinic's Eka ID

Headers

authstring required
Example:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiX2lkIjoiMTIzNDU2IiwiY2xpZW50X2lkIjoiNzg5MCIsImV4dHJhX2ZpZWxkIjoiZXh0cmFfZmllbGRfZGF0YSJ9.q9KzBI6f4l3OyM_EkB5Quq0l9EEMFh5JS-fx3F_PHUM

The auth token of the business. It is used to authenticate the client. This should be fetched from auth api.

Request body

namestring
addressstring
partner_idstring
pincodestring
contactstring
doctor_idsstring[]

Add these Eka doctor IDs to the clinic's existing doctor associations

partner_doctor_idsstring[]

Add doctors matching these partner IDs to the clinic's existing doctor associations

citystring
statestring

Example request

{
  "name": "Sunrise Clinic",
  "address": "123 Main Street, Block A",
  "partner_id": "Clinic_321_Indore",
  "pincode": "560001",
  "contact": "9876543210",
  "doctor_ids": [
    "do1769174683513"
  ],
  "partner_doctor_ids": [
    "Part_Doc_1"
  ],
  "city": "Bangalore",
  "state": "Karnataka"
}

Response

OK - Clinic updated successfully

statusstring
ekaidstring

Example response

{
  "status": "success",
  "ekaid": "c-ab2c-34f2d-2gwd-2g2g"
}