curl --request PATCH \
--url https://scribe-api.telepatia.ai/v1/patients/{patient_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"internalCode": "EMR-99999",
"name": "Jane Doe"
}
'import requests
url = "https://scribe-api.telepatia.ai/v1/patients/{patient_id}"
payload = {
"internalCode": "EMR-99999",
"name": "Jane Doe"
}
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({internalCode: 'EMR-99999', name: 'Jane Doe'})
};
fetch('https://scribe-api.telepatia.ai/v1/patients/{patient_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://scribe-api.telepatia.ai/v1/patients/{patient_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([
'internalCode' => 'EMR-99999',
'name' => 'Jane Doe'
]),
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://scribe-api.telepatia.ai/v1/patients/{patient_id}"
payload := strings.NewReader("{\n \"internalCode\": \"EMR-99999\",\n \"name\": \"Jane Doe\"\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://scribe-api.telepatia.ai/v1/patients/{patient_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"internalCode\": \"EMR-99999\",\n \"name\": \"Jane Doe\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://scribe-api.telepatia.ai/v1/patients/{patient_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 \"internalCode\": \"EMR-99999\",\n \"name\": \"Jane Doe\"\n}"
response = http.request(request)
puts response.read_body{
"createdAt": "2026-07-01T12:00:00.000Z",
"id": "sp_a1b2c3d4e5f6g7h8",
"idCountry": "COLOMBIA",
"idType": "CC",
"idValue": "1024567890",
"internalCode": "EMR-12345",
"name": "John Doe"
}Update a patient
Update a patient’s name or internalCode by its public id (sp_…) or the internalCode you set for your institution. The national identity is not editable here. Omit a field to leave it unchanged.
curl --request PATCH \
--url https://scribe-api.telepatia.ai/v1/patients/{patient_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"internalCode": "EMR-99999",
"name": "Jane Doe"
}
'import requests
url = "https://scribe-api.telepatia.ai/v1/patients/{patient_id}"
payload = {
"internalCode": "EMR-99999",
"name": "Jane Doe"
}
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({internalCode: 'EMR-99999', name: 'Jane Doe'})
};
fetch('https://scribe-api.telepatia.ai/v1/patients/{patient_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://scribe-api.telepatia.ai/v1/patients/{patient_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([
'internalCode' => 'EMR-99999',
'name' => 'Jane Doe'
]),
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://scribe-api.telepatia.ai/v1/patients/{patient_id}"
payload := strings.NewReader("{\n \"internalCode\": \"EMR-99999\",\n \"name\": \"Jane Doe\"\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://scribe-api.telepatia.ai/v1/patients/{patient_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"internalCode\": \"EMR-99999\",\n \"name\": \"Jane Doe\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://scribe-api.telepatia.ai/v1/patients/{patient_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 \"internalCode\": \"EMR-99999\",\n \"name\": \"Jane Doe\"\n}"
response = http.request(request)
puts response.read_body{
"createdAt": "2026-07-01T12:00:00.000Z",
"id": "sp_a1b2c3d4e5f6g7h8",
"idCountry": "COLOMBIA",
"idType": "CC",
"idValue": "1024567890",
"internalCode": "EMR-12345",
"name": "John Doe"
}Authorizations
API key passed as a Bearer token
Path Parameters
Body
Request body for updating a patient. All fields optional; at least one required.
The national identity (idCountry/idType/idValue) is not editable here — it stays
the deduplication key. internalCode follows PATCH semantics: omit to leave it
unchanged, send null to clear it.
Response
Successful Response
A single patient. id is the stable public id (sp_...).
Stable public identifier.
"sp_a1b2c3d4e5f6g7h8"
"John Doe"
ISO-8601 timestamp when the patient was created.
"COLOMBIA"
"CC"
"1024567890"
Caller-provided internal code for your institution (null if none).
"EMR-12345"