Cancel Appointment
curl --request PUT \
--url https://api.eka.care/dr/v1/appointment/{appointment_id}/cancel \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/dr/v1/appointment/{appointment_id}/cancel"
headers = {"auth": "<auth>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/dr/v1/appointment/{appointment_id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.put("https://api.eka.care/dr/v1/appointment/{appointment_id}/cancel")
.header("auth", "<auth>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/dr/v1/appointment/{appointment_id}/cancel");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/dr/v1/appointment/{appointment_id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_REQUEST",
"message": "The request is invalid or missing required parameters"
}
}{
"error": {
"code": "CANCEL_NOT_ALLOWED",
"message": "You do not have permission to cancel this appointment"
}
}{
"error": {
"code": "APPOINTMENT_NOT_FOUND",
"message": "The specified appointment ID does not exist"
}
}{
"error": {
"code": "SERVER_ERROR",
"message": "An unexpected error occurred on the server"
}
}Appointment API
Cancel Appointment
Overview
This API endpoint is used to cancel an existing appointment.
PUT
/
dr
/
v1
/
appointment
/
{appointment_id}
/
cancel
Cancel Appointment
curl --request PUT \
--url https://api.eka.care/dr/v1/appointment/{appointment_id}/cancel \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/dr/v1/appointment/{appointment_id}/cancel"
headers = {"auth": "<auth>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/dr/v1/appointment/{appointment_id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.put("https://api.eka.care/dr/v1/appointment/{appointment_id}/cancel")
.header("auth", "<auth>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/dr/v1/appointment/{appointment_id}/cancel");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/dr/v1/appointment/{appointment_id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_REQUEST",
"message": "The request is invalid or missing required parameters"
}
}{
"error": {
"code": "CANCEL_NOT_ALLOWED",
"message": "You do not have permission to cancel this appointment"
}
}{
"error": {
"code": "APPOINTMENT_NOT_FOUND",
"message": "The specified appointment ID does not exist"
}
}{
"error": {
"code": "SERVER_ERROR",
"message": "An unexpected error occurred on the server"
}
}Was this page helpful?

