Delete Case
curl --request DELETE \
--url https://api.eka.care/mr/api/v1/cases/{id} \
--header 'Authorization: Bearer <token>' \
--header 'X-Pt-Id: <x-pt-id>'import requests
url = "https://api.eka.care/mr/api/v1/cases/{id}"
headers = {
"X-Pt-Id": "<x-pt-id>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'X-Pt-Id': '<x-pt-id>', Authorization: 'Bearer <token>'}
};
fetch('https://api.eka.care/mr/api/v1/cases/{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/mr/api/v1/cases/{id}")
.header("X-Pt-Id", "<x-pt-id>")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/mr/api/v1/cases/{id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-Pt-Id", "<x-pt-id>");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.DeleteAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/mr/api/v1/cases/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-Pt-Id"] = '<x-pt-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"error": "Unauthorized access. Please provide a valid token.",
"code": "UNAUTHORIZED"
}{
"error": "No case found with the given ID.",
"code": "NOT_FOUND"
}{
"error": "Unexpected error occurred while deleting the case.",
"code": "INTERNAL_SERVER_ERROR"
}Medical Records
Delete Case
This endpoint allows deleting a case using the case ID.
DELETE
/
mr
/
api
/
v1
/
cases
/
{id}
Delete Case
curl --request DELETE \
--url https://api.eka.care/mr/api/v1/cases/{id} \
--header 'Authorization: Bearer <token>' \
--header 'X-Pt-Id: <x-pt-id>'import requests
url = "https://api.eka.care/mr/api/v1/cases/{id}"
headers = {
"X-Pt-Id": "<x-pt-id>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'X-Pt-Id': '<x-pt-id>', Authorization: 'Bearer <token>'}
};
fetch('https://api.eka.care/mr/api/v1/cases/{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/mr/api/v1/cases/{id}")
.header("X-Pt-Id", "<x-pt-id>")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/mr/api/v1/cases/{id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-Pt-Id", "<x-pt-id>");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.DeleteAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/mr/api/v1/cases/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-Pt-Id"] = '<x-pt-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"error": "Unauthorized access. Please provide a valid token.",
"code": "UNAUTHORIZED"
}{
"error": "No case found with the given ID.",
"code": "NOT_FOUND"
}{
"error": "Unexpected error occurred while deleting the case.",
"code": "INTERNAL_SERVER_ERROR"
}Was this page helpful?

