Delete Doctor
curl --request DELETE \
--url https://api.eka.care/cdr/v1/doctor/{doc_id}/ \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/cdr/v1/doctor/{doc_id}/"
headers = {"auth": "<auth>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/cdr/v1/doctor/{doc_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.delete("https://api.eka.care/cdr/v1/doctor/{doc_id}/")
.header("auth", "<auth>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/cdr/v1/doctor/{doc_id}/");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
var response = await client.DeleteAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/cdr/v1/doctor/{doc_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Doctor Deleted Successfully"
}{
"status": "error",
"message": "Doctor not found"
}Config management APIs
Delete Doctor
Overview
Soft-delete a doctor by their Eka ID or partner-provided ID. Once deleted, the doctor will no longer appear in list or get responses.
Endpoint: {{HOST}}/cdr/v1/doctor/{doc_id}/
Method: DELETE
Path Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| doc_id | string | Doctor’s Eka ID or partner-provided ID | Yes |
DELETE
/
cdr
/
v1
/
doctor
/
{doc_id}
/
Delete Doctor
curl --request DELETE \
--url https://api.eka.care/cdr/v1/doctor/{doc_id}/ \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/cdr/v1/doctor/{doc_id}/"
headers = {"auth": "<auth>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/cdr/v1/doctor/{doc_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.delete("https://api.eka.care/cdr/v1/doctor/{doc_id}/")
.header("auth", "<auth>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/cdr/v1/doctor/{doc_id}/");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
var response = await client.DeleteAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/cdr/v1/doctor/{doc_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Doctor Deleted Successfully"
}{
"status": "error",
"message": "Doctor not found"
}Headers
The auth token of the business. It is used to authenticate the client. This should be fetched from auth api.
Example:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiX2lkIjoiMTIzNDU2IiwiY2xpZW50X2lkIjoiNzg5MCIsImV4dHJhX2ZpZWxkIjoiZXh0cmFfZmllbGRfZGF0YSJ9.q9KzBI6f4l3OyM_EkB5Quq0l9EEMFh5JS-fx3F_PHUM"
Path Parameters
Doctor's Eka ID or partner-provided ID
Example:
"do1769174683513"
Was this page helpful?

