curl --request PATCH \
--url https://api.eka.care/ipd/v1/service/nursing-notes-templates/{template_id} \
--header 'Content-Type: application/json' \
--header 'auth: <auth>' \
--data '
{
"name": "Vitals check (4-hourly)"
}
'import requests
url = "https://api.eka.care/ipd/v1/service/nursing-notes-templates/{template_id}"
payload = { "name": "Vitals check (4-hourly)" }
headers = {
"auth": "<auth>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {auth: '<auth>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Vitals check (4-hourly)'})
};
fetch('https://api.eka.care/ipd/v1/service/nursing-notes-templates/{template_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://api.eka.care/ipd/v1/service/nursing-notes-templates/{template_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([
'name' => 'Vitals check (4-hourly)'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"auth: <auth>"
],
]);
$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://api.eka.care/ipd/v1/service/nursing-notes-templates/{template_id}"
payload := strings.NewReader("{\n \"name\": \"Vitals check (4-hourly)\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("auth", "<auth>")
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://api.eka.care/ipd/v1/service/nursing-notes-templates/{template_id}")
.header("auth", "<auth>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Vitals check (4-hourly)\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/v1/service/nursing-notes-templates/{template_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["auth"] = '<auth>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Vitals check (4-hourly)\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "66f1cae5e4b0a1b2c3d4ed08",
"name": "Vitals check (4-hourly)",
"description": "Routine vitals note",
"actor_name": "Anita Rao",
"actor_oid": "161467756044203",
"content_html": "<p>BP: __ / __, Pulse: __, Temp: __</p>",
"content_json": [
{
"type": "paragraph",
"text": "BP: __ / __, Pulse: __, Temp: __"
}
],
"tag": [
"vitals"
],
"createdAt": "2026-10-07T08:10:00.000Z",
"updatedAt": "2026-10-07T09:00:00.000Z",
"__v": 0
}
}{
"success": true,
"error": "<string>"
}{
"message": "<string>"
}{
"success": false,
"error": "Nursing note template not found"
}Update Nursing Note Template
Overview
This API updates a nursing note template of your workspace. It is a partial update: only the fields sent in the request body are changed, and fields that are omitted keep their current value.
To delete a template, send archived: true. The template is archived (not removed) and the user making the request is recorded in archived_by_oid, archived_by_name and archived_at. Sending archived: false has no effect, so an archived template cannot be restored.
Returns 404 with Nursing note template not found when the template_id does not exist or belongs to another workspace.
curl --request PATCH \
--url https://api.eka.care/ipd/v1/service/nursing-notes-templates/{template_id} \
--header 'Content-Type: application/json' \
--header 'auth: <auth>' \
--data '
{
"name": "Vitals check (4-hourly)"
}
'import requests
url = "https://api.eka.care/ipd/v1/service/nursing-notes-templates/{template_id}"
payload = { "name": "Vitals check (4-hourly)" }
headers = {
"auth": "<auth>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {auth: '<auth>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Vitals check (4-hourly)'})
};
fetch('https://api.eka.care/ipd/v1/service/nursing-notes-templates/{template_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://api.eka.care/ipd/v1/service/nursing-notes-templates/{template_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([
'name' => 'Vitals check (4-hourly)'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"auth: <auth>"
],
]);
$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://api.eka.care/ipd/v1/service/nursing-notes-templates/{template_id}"
payload := strings.NewReader("{\n \"name\": \"Vitals check (4-hourly)\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("auth", "<auth>")
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://api.eka.care/ipd/v1/service/nursing-notes-templates/{template_id}")
.header("auth", "<auth>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Vitals check (4-hourly)\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/v1/service/nursing-notes-templates/{template_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["auth"] = '<auth>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Vitals check (4-hourly)\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "66f1cae5e4b0a1b2c3d4ed08",
"name": "Vitals check (4-hourly)",
"description": "Routine vitals note",
"actor_name": "Anita Rao",
"actor_oid": "161467756044203",
"content_html": "<p>BP: __ / __, Pulse: __, Temp: __</p>",
"content_json": [
{
"type": "paragraph",
"text": "BP: __ / __, Pulse: __, Temp: __"
}
],
"tag": [
"vitals"
],
"createdAt": "2026-10-07T08:10:00.000Z",
"updatedAt": "2026-10-07T09:00:00.000Z",
"__v": 0
}
}{
"success": true,
"error": "<string>"
}{
"message": "<string>"
}{
"success": false,
"error": "Nursing note template not found"
}Headers
Path Parameters
Id of the template to update.
Body
The template fields to change. Send only the fields you want to update.
New display name of the template.
New description of the template.
New template content as HTML.
New template content in structured (JSON) form.
New tags for the template (replaces the existing tags).
Send true to archive (delete) the template.
Was this page helpful?

