Appointment Types
Partially Update Appointment Type
Update an existing appointment type.
PATCH
/
api
/
2.0
/
appointment_types
/
{id}
/
Partially Update Appointment Type
curl --request PATCH \
--url https://sandbox.elationemr.com/api/2.0/appointment_types/{id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"abbreviation": "<string>",
"color": "<string>",
"default_duration": 123,
"description": "<string>",
"elation_note_template_ids": [
123
],
"is_telehealth": true,
"name": "<string>",
"patient_bookable": true,
"patient_form_hours_prior": 123,
"patient_forms": [
123
],
"practice": 123,
"visit_note_templates": [
123
],
"visit_note_type": 123
}
'import requests
url = "https://sandbox.elationemr.com/api/2.0/appointment_types/{id}/"
payload = {
"abbreviation": "<string>",
"color": "<string>",
"default_duration": 123,
"description": "<string>",
"elation_note_template_ids": [123],
"is_telehealth": True,
"name": "<string>",
"patient_bookable": True,
"patient_form_hours_prior": 123,
"patient_forms": [123],
"practice": 123,
"visit_note_templates": [123],
"visit_note_type": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
abbreviation: '<string>',
color: '<string>',
default_duration: 123,
description: '<string>',
elation_note_template_ids: [123],
is_telehealth: true,
name: '<string>',
patient_bookable: true,
patient_form_hours_prior: 123,
patient_forms: [123],
practice: 123,
visit_note_templates: [123],
visit_note_type: 123
})
};
fetch('https://sandbox.elationemr.com/api/2.0/appointment_types/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.elationemr.com/api/2.0/appointment_types/{id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'abbreviation' => '<string>',
'color' => '<string>',
'default_duration' => 123,
'description' => '<string>',
'elation_note_template_ids' => [
123
],
'is_telehealth' => true,
'name' => '<string>',
'patient_bookable' => true,
'patient_form_hours_prior' => 123,
'patient_forms' => [
123
],
'practice' => 123,
'visit_note_templates' => [
123
],
'visit_note_type' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.elationemr.com/api/2.0/appointment_types/{id}/"
payload := strings.NewReader("{\n \"abbreviation\": \"<string>\",\n \"color\": \"<string>\",\n \"default_duration\": 123,\n \"description\": \"<string>\",\n \"elation_note_template_ids\": [\n 123\n ],\n \"is_telehealth\": true,\n \"name\": \"<string>\",\n \"patient_bookable\": true,\n \"patient_form_hours_prior\": 123,\n \"patient_forms\": [\n 123\n ],\n \"practice\": 123,\n \"visit_note_templates\": [\n 123\n ],\n \"visit_note_type\": 123\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://sandbox.elationemr.com/api/2.0/appointment_types/{id}/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"abbreviation\": \"<string>\",\n \"color\": \"<string>\",\n \"default_duration\": 123,\n \"description\": \"<string>\",\n \"elation_note_template_ids\": [\n 123\n ],\n \"is_telehealth\": true,\n \"name\": \"<string>\",\n \"patient_bookable\": true,\n \"patient_form_hours_prior\": 123,\n \"patient_forms\": [\n 123\n ],\n \"practice\": 123,\n \"visit_note_templates\": [\n 123\n ],\n \"visit_note_type\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.elationemr.com/api/2.0/appointment_types/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"abbreviation\": \"<string>\",\n \"color\": \"<string>\",\n \"default_duration\": 123,\n \"description\": \"<string>\",\n \"elation_note_template_ids\": [\n 123\n ],\n \"is_telehealth\": true,\n \"name\": \"<string>\",\n \"patient_bookable\": true,\n \"patient_form_hours_prior\": 123,\n \"patient_forms\": [\n 123\n ],\n \"practice\": 123,\n \"visit_note_templates\": [\n 123\n ],\n \"visit_note_type\": 123\n}"
response = http.request(request)
puts response.read_body{
"default_duration": 123,
"name": "<string>",
"practice": 123,
"abbreviation": "<string>",
"color": "<string>",
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"description": "<string>",
"elation_note_template_ids": [
123
],
"id": 123,
"is_telehealth": true,
"patient_bookable": true,
"patient_form_hours_prior": 123,
"patient_forms": [
123
],
"sequence": 123,
"visit_note_templates": [
123
],
"visit_note_type": 123
}Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
Body
application/json
Available options:
note2, oneCol.oneField, oneCol.preOp, oneCol.preOp2, oneCol.simple, twoCol.complex, twoCol.complex2 Response
200 - application/json
Available options:
note2, oneCol.oneField, oneCol.preOp, oneCol.preOp2, oneCol.simple, twoCol.complex, twoCol.complex2 Was this page helpful?
⌘I
Partially Update Appointment Type
curl --request PATCH \
--url https://sandbox.elationemr.com/api/2.0/appointment_types/{id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"abbreviation": "<string>",
"color": "<string>",
"default_duration": 123,
"description": "<string>",
"elation_note_template_ids": [
123
],
"is_telehealth": true,
"name": "<string>",
"patient_bookable": true,
"patient_form_hours_prior": 123,
"patient_forms": [
123
],
"practice": 123,
"visit_note_templates": [
123
],
"visit_note_type": 123
}
'import requests
url = "https://sandbox.elationemr.com/api/2.0/appointment_types/{id}/"
payload = {
"abbreviation": "<string>",
"color": "<string>",
"default_duration": 123,
"description": "<string>",
"elation_note_template_ids": [123],
"is_telehealth": True,
"name": "<string>",
"patient_bookable": True,
"patient_form_hours_prior": 123,
"patient_forms": [123],
"practice": 123,
"visit_note_templates": [123],
"visit_note_type": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
abbreviation: '<string>',
color: '<string>',
default_duration: 123,
description: '<string>',
elation_note_template_ids: [123],
is_telehealth: true,
name: '<string>',
patient_bookable: true,
patient_form_hours_prior: 123,
patient_forms: [123],
practice: 123,
visit_note_templates: [123],
visit_note_type: 123
})
};
fetch('https://sandbox.elationemr.com/api/2.0/appointment_types/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.elationemr.com/api/2.0/appointment_types/{id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'abbreviation' => '<string>',
'color' => '<string>',
'default_duration' => 123,
'description' => '<string>',
'elation_note_template_ids' => [
123
],
'is_telehealth' => true,
'name' => '<string>',
'patient_bookable' => true,
'patient_form_hours_prior' => 123,
'patient_forms' => [
123
],
'practice' => 123,
'visit_note_templates' => [
123
],
'visit_note_type' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.elationemr.com/api/2.0/appointment_types/{id}/"
payload := strings.NewReader("{\n \"abbreviation\": \"<string>\",\n \"color\": \"<string>\",\n \"default_duration\": 123,\n \"description\": \"<string>\",\n \"elation_note_template_ids\": [\n 123\n ],\n \"is_telehealth\": true,\n \"name\": \"<string>\",\n \"patient_bookable\": true,\n \"patient_form_hours_prior\": 123,\n \"patient_forms\": [\n 123\n ],\n \"practice\": 123,\n \"visit_note_templates\": [\n 123\n ],\n \"visit_note_type\": 123\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://sandbox.elationemr.com/api/2.0/appointment_types/{id}/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"abbreviation\": \"<string>\",\n \"color\": \"<string>\",\n \"default_duration\": 123,\n \"description\": \"<string>\",\n \"elation_note_template_ids\": [\n 123\n ],\n \"is_telehealth\": true,\n \"name\": \"<string>\",\n \"patient_bookable\": true,\n \"patient_form_hours_prior\": 123,\n \"patient_forms\": [\n 123\n ],\n \"practice\": 123,\n \"visit_note_templates\": [\n 123\n ],\n \"visit_note_type\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.elationemr.com/api/2.0/appointment_types/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"abbreviation\": \"<string>\",\n \"color\": \"<string>\",\n \"default_duration\": 123,\n \"description\": \"<string>\",\n \"elation_note_template_ids\": [\n 123\n ],\n \"is_telehealth\": true,\n \"name\": \"<string>\",\n \"patient_bookable\": true,\n \"patient_form_hours_prior\": 123,\n \"patient_forms\": [\n 123\n ],\n \"practice\": 123,\n \"visit_note_templates\": [\n 123\n ],\n \"visit_note_type\": 123\n}"
response = http.request(request)
puts response.read_body{
"default_duration": 123,
"name": "<string>",
"practice": 123,
"abbreviation": "<string>",
"color": "<string>",
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"description": "<string>",
"elation_note_template_ids": [
123
],
"id": 123,
"is_telehealth": true,
"patient_bookable": true,
"patient_form_hours_prior": 123,
"patient_forms": [
123
],
"sequence": 123,
"visit_note_templates": [
123
],
"visit_note_type": 123
}