Handouts
Update Handout
Replace an existing handout.
PUT
/
api
/
2.0
/
handouts
/
{id}
/
Update Handout
curl --request PUT \
--url https://sandbox.elationemr.com/api/2.0/handouts/{id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": {
"base64_content": "<string>",
"original_filename": "<string>"
},
"name": "<string>",
"practice_created": 123,
"tags": [
"<string>"
],
"vis_barcode": "<string>"
}
'import requests
url = "https://sandbox.elationemr.com/api/2.0/handouts/{id}/"
payload = {
"content": {
"base64_content": "<string>",
"original_filename": "<string>"
},
"name": "<string>",
"practice_created": 123,
"tags": ["<string>"],
"vis_barcode": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
content: {base64_content: '<string>', original_filename: '<string>'},
name: '<string>',
practice_created: 123,
tags: ['<string>'],
vis_barcode: '<string>'
})
};
fetch('https://sandbox.elationemr.com/api/2.0/handouts/{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/handouts/{id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'content' => [
'base64_content' => '<string>',
'original_filename' => '<string>'
],
'name' => '<string>',
'practice_created' => 123,
'tags' => [
'<string>'
],
'vis_barcode' => '<string>'
]),
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/handouts/{id}/"
payload := strings.NewReader("{\n \"content\": {\n \"base64_content\": \"<string>\",\n \"original_filename\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"practice_created\": 123,\n \"tags\": [\n \"<string>\"\n ],\n \"vis_barcode\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://sandbox.elationemr.com/api/2.0/handouts/{id}/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"content\": {\n \"base64_content\": \"<string>\",\n \"original_filename\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"practice_created\": 123,\n \"tags\": [\n \"<string>\"\n ],\n \"vis_barcode\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.elationemr.com/api/2.0/handouts/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"content\": {\n \"base64_content\": \"<string>\",\n \"original_filename\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"practice_created\": 123,\n \"tags\": [\n \"<string>\"\n ],\n \"vis_barcode\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"content": {
"base64_content": "<string>",
"original_filename": "<string>",
"content_type": "<string>"
},
"name": "<string>",
"practice_created": 123,
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"id": 123,
"received_date": "2023-11-07T05:31:56Z",
"tags": [
"<string>"
],
"vis_barcode": "<string>"
}Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
Body
application/json
Contains only webhooks All other fields inherited
The Content serializer. It serialize file data
Show child attributes
Show child attributes
The name of the handout.
Maximum string length:
255Available options:
Patient Resource, VIS Should only be set if the type == VIS.
Maximum string length:
30Response
200 - application/json
Contains only webhooks All other fields inherited
The Content serializer. It serialize file data
Show child attributes
Show child attributes
The name of the handout.
Maximum string length:
255Available options:
Patient Resource, VIS Should only be set if the type == VIS.
Maximum string length:
30Was this page helpful?
⌘I
Update Handout
curl --request PUT \
--url https://sandbox.elationemr.com/api/2.0/handouts/{id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": {
"base64_content": "<string>",
"original_filename": "<string>"
},
"name": "<string>",
"practice_created": 123,
"tags": [
"<string>"
],
"vis_barcode": "<string>"
}
'import requests
url = "https://sandbox.elationemr.com/api/2.0/handouts/{id}/"
payload = {
"content": {
"base64_content": "<string>",
"original_filename": "<string>"
},
"name": "<string>",
"practice_created": 123,
"tags": ["<string>"],
"vis_barcode": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
content: {base64_content: '<string>', original_filename: '<string>'},
name: '<string>',
practice_created: 123,
tags: ['<string>'],
vis_barcode: '<string>'
})
};
fetch('https://sandbox.elationemr.com/api/2.0/handouts/{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/handouts/{id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'content' => [
'base64_content' => '<string>',
'original_filename' => '<string>'
],
'name' => '<string>',
'practice_created' => 123,
'tags' => [
'<string>'
],
'vis_barcode' => '<string>'
]),
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/handouts/{id}/"
payload := strings.NewReader("{\n \"content\": {\n \"base64_content\": \"<string>\",\n \"original_filename\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"practice_created\": 123,\n \"tags\": [\n \"<string>\"\n ],\n \"vis_barcode\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://sandbox.elationemr.com/api/2.0/handouts/{id}/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"content\": {\n \"base64_content\": \"<string>\",\n \"original_filename\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"practice_created\": 123,\n \"tags\": [\n \"<string>\"\n ],\n \"vis_barcode\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.elationemr.com/api/2.0/handouts/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"content\": {\n \"base64_content\": \"<string>\",\n \"original_filename\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"practice_created\": 123,\n \"tags\": [\n \"<string>\"\n ],\n \"vis_barcode\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"content": {
"base64_content": "<string>",
"original_filename": "<string>",
"content_type": "<string>"
},
"name": "<string>",
"practice_created": 123,
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"id": 123,
"received_date": "2023-11-07T05:31:56Z",
"tags": [
"<string>"
],
"vis_barcode": "<string>"
}