Recurring Event Groups
Create Recurring Event Group
Create a new recurring event group.
POST
/
api
/
2.0
/
recurring_event_groups
/
Create Recurring Event Group
curl --request POST \
--url https://sandbox.elationemr.com/api/2.0/recurring_event_groups/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"practice": 123,
"schedules": [
{
"duration": 123,
"event_time": "<string>",
"physician": 123,
"series_start": "2023-12-25",
"description": "<string>",
"dow_friday": true,
"dow_monday": true,
"dow_saturday": true,
"dow_sunday": true,
"dow_thursday": true,
"dow_tuesday": true,
"dow_wednesday": true,
"series_stop": "2023-12-25"
}
]
}
'import requests
url = "https://sandbox.elationemr.com/api/2.0/recurring_event_groups/"
payload = {
"practice": 123,
"schedules": [
{
"duration": 123,
"event_time": "<string>",
"physician": 123,
"series_start": "2023-12-25",
"description": "<string>",
"dow_friday": True,
"dow_monday": True,
"dow_saturday": True,
"dow_sunday": True,
"dow_thursday": True,
"dow_tuesday": True,
"dow_wednesday": True,
"series_stop": "2023-12-25"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
practice: 123,
schedules: [
{
duration: 123,
event_time: '<string>',
physician: 123,
series_start: '2023-12-25',
description: '<string>',
dow_friday: true,
dow_monday: true,
dow_saturday: true,
dow_sunday: true,
dow_thursday: true,
dow_tuesday: true,
dow_wednesday: true,
series_stop: '2023-12-25'
}
]
})
};
fetch('https://sandbox.elationemr.com/api/2.0/recurring_event_groups/', 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/recurring_event_groups/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'practice' => 123,
'schedules' => [
[
'duration' => 123,
'event_time' => '<string>',
'physician' => 123,
'series_start' => '2023-12-25',
'description' => '<string>',
'dow_friday' => true,
'dow_monday' => true,
'dow_saturday' => true,
'dow_sunday' => true,
'dow_thursday' => true,
'dow_tuesday' => true,
'dow_wednesday' => true,
'series_stop' => '2023-12-25'
]
]
]),
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/recurring_event_groups/"
payload := strings.NewReader("{\n \"practice\": 123,\n \"schedules\": [\n {\n \"duration\": 123,\n \"event_time\": \"<string>\",\n \"physician\": 123,\n \"series_start\": \"2023-12-25\",\n \"description\": \"<string>\",\n \"dow_friday\": true,\n \"dow_monday\": true,\n \"dow_saturday\": true,\n \"dow_sunday\": true,\n \"dow_thursday\": true,\n \"dow_tuesday\": true,\n \"dow_wednesday\": true,\n \"series_stop\": \"2023-12-25\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("https://sandbox.elationemr.com/api/2.0/recurring_event_groups/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"practice\": 123,\n \"schedules\": [\n {\n \"duration\": 123,\n \"event_time\": \"<string>\",\n \"physician\": 123,\n \"series_start\": \"2023-12-25\",\n \"description\": \"<string>\",\n \"dow_friday\": true,\n \"dow_monday\": true,\n \"dow_saturday\": true,\n \"dow_sunday\": true,\n \"dow_thursday\": true,\n \"dow_tuesday\": true,\n \"dow_wednesday\": true,\n \"series_stop\": \"2023-12-25\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.elationemr.com/api/2.0/recurring_event_groups/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"practice\": 123,\n \"schedules\": [\n {\n \"duration\": 123,\n \"event_time\": \"<string>\",\n \"physician\": 123,\n \"series_start\": \"2023-12-25\",\n \"description\": \"<string>\",\n \"dow_friday\": true,\n \"dow_monday\": true,\n \"dow_saturday\": true,\n \"dow_sunday\": true,\n \"dow_thursday\": true,\n \"dow_tuesday\": true,\n \"dow_wednesday\": true,\n \"series_stop\": \"2023-12-25\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"practice": 123,
"schedules": [
{
"duration": 123,
"event_time": "<string>",
"physician": 123,
"series_start": "2023-12-25",
"created_date": "2023-11-07T05:31:56Z",
"description": "<string>",
"dow_friday": true,
"dow_monday": true,
"dow_saturday": true,
"dow_sunday": true,
"dow_thursday": true,
"dow_tuesday": true,
"dow_wednesday": true,
"id": 123,
"series_stop": "2023-12-25"
}
],
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"id": 123,
"is_blocking": true,
"reason": "<string>"
}Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
application/json
Response
201 - application/json
Show child attributes
Show child attributes
Available options:
appointment, appointment_slot, event Was this page helpful?
⌘I
Create Recurring Event Group
curl --request POST \
--url https://sandbox.elationemr.com/api/2.0/recurring_event_groups/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"practice": 123,
"schedules": [
{
"duration": 123,
"event_time": "<string>",
"physician": 123,
"series_start": "2023-12-25",
"description": "<string>",
"dow_friday": true,
"dow_monday": true,
"dow_saturday": true,
"dow_sunday": true,
"dow_thursday": true,
"dow_tuesday": true,
"dow_wednesday": true,
"series_stop": "2023-12-25"
}
]
}
'import requests
url = "https://sandbox.elationemr.com/api/2.0/recurring_event_groups/"
payload = {
"practice": 123,
"schedules": [
{
"duration": 123,
"event_time": "<string>",
"physician": 123,
"series_start": "2023-12-25",
"description": "<string>",
"dow_friday": True,
"dow_monday": True,
"dow_saturday": True,
"dow_sunday": True,
"dow_thursday": True,
"dow_tuesday": True,
"dow_wednesday": True,
"series_stop": "2023-12-25"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
practice: 123,
schedules: [
{
duration: 123,
event_time: '<string>',
physician: 123,
series_start: '2023-12-25',
description: '<string>',
dow_friday: true,
dow_monday: true,
dow_saturday: true,
dow_sunday: true,
dow_thursday: true,
dow_tuesday: true,
dow_wednesday: true,
series_stop: '2023-12-25'
}
]
})
};
fetch('https://sandbox.elationemr.com/api/2.0/recurring_event_groups/', 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/recurring_event_groups/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'practice' => 123,
'schedules' => [
[
'duration' => 123,
'event_time' => '<string>',
'physician' => 123,
'series_start' => '2023-12-25',
'description' => '<string>',
'dow_friday' => true,
'dow_monday' => true,
'dow_saturday' => true,
'dow_sunday' => true,
'dow_thursday' => true,
'dow_tuesday' => true,
'dow_wednesday' => true,
'series_stop' => '2023-12-25'
]
]
]),
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/recurring_event_groups/"
payload := strings.NewReader("{\n \"practice\": 123,\n \"schedules\": [\n {\n \"duration\": 123,\n \"event_time\": \"<string>\",\n \"physician\": 123,\n \"series_start\": \"2023-12-25\",\n \"description\": \"<string>\",\n \"dow_friday\": true,\n \"dow_monday\": true,\n \"dow_saturday\": true,\n \"dow_sunday\": true,\n \"dow_thursday\": true,\n \"dow_tuesday\": true,\n \"dow_wednesday\": true,\n \"series_stop\": \"2023-12-25\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("https://sandbox.elationemr.com/api/2.0/recurring_event_groups/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"practice\": 123,\n \"schedules\": [\n {\n \"duration\": 123,\n \"event_time\": \"<string>\",\n \"physician\": 123,\n \"series_start\": \"2023-12-25\",\n \"description\": \"<string>\",\n \"dow_friday\": true,\n \"dow_monday\": true,\n \"dow_saturday\": true,\n \"dow_sunday\": true,\n \"dow_thursday\": true,\n \"dow_tuesday\": true,\n \"dow_wednesday\": true,\n \"series_stop\": \"2023-12-25\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.elationemr.com/api/2.0/recurring_event_groups/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"practice\": 123,\n \"schedules\": [\n {\n \"duration\": 123,\n \"event_time\": \"<string>\",\n \"physician\": 123,\n \"series_start\": \"2023-12-25\",\n \"description\": \"<string>\",\n \"dow_friday\": true,\n \"dow_monday\": true,\n \"dow_saturday\": true,\n \"dow_sunday\": true,\n \"dow_thursday\": true,\n \"dow_tuesday\": true,\n \"dow_wednesday\": true,\n \"series_stop\": \"2023-12-25\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"practice": 123,
"schedules": [
{
"duration": 123,
"event_time": "<string>",
"physician": 123,
"series_start": "2023-12-25",
"created_date": "2023-11-07T05:31:56Z",
"description": "<string>",
"dow_friday": true,
"dow_monday": true,
"dow_saturday": true,
"dow_sunday": true,
"dow_thursday": true,
"dow_tuesday": true,
"dow_wednesday": true,
"id": 123,
"series_stop": "2023-12-25"
}
],
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"id": 123,
"is_blocking": true,
"reason": "<string>"
}