Complete Appointment
curl --request POST \
--url https://api.eka.care/dr/v1/appointment/{appointment_id}/complete \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/dr/v1/appointment/{appointment_id}/complete"
headers = {"auth": "<auth>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/dr/v1/appointment/{appointment_id}/complete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.eka.care/dr/v1/appointment/{appointment_id}/complete")
.header("auth", "<auth>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/dr/v1/appointment/{appointment_id}/complete");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/dr/v1/appointment/{appointment_id}/complete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.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": "COMPLETE_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
Complete Appointment
Overview
This API endpoint is used to complete an existing appointment.
POST
/
dr
/
v1
/
appointment
/
{appointment_id}
/
complete
Complete Appointment
curl --request POST \
--url https://api.eka.care/dr/v1/appointment/{appointment_id}/complete \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/dr/v1/appointment/{appointment_id}/complete"
headers = {"auth": "<auth>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/dr/v1/appointment/{appointment_id}/complete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.eka.care/dr/v1/appointment/{appointment_id}/complete")
.header("auth", "<auth>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/dr/v1/appointment/{appointment_id}/complete");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/dr/v1/appointment/{appointment_id}/complete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.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": "COMPLETE_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?

