Saltar al contenido principal
PUT
Update a Smart Template

Autorizaciones

Authorization
string
header
requerido

API key enviada como token Bearer

Parámetros de ruta

configuration_id
string
requerido

Cuerpo

application/json

Request body: the full new content of an existing Smart Template.

A GET body goes back as is. The section map takes properties as a map (the create shape) or as the [{key, schema}] list of a GET response. A field the update cannot change (workflow, hash, status, an unknown field) is ignored.

name
string
requerido

Human-readable display name.

Required string length: 1 - 200
Ejemplo:

"Cardiology intake"

configuration
Configuration · object
requerido

Section map keyed by node key (schema + optional prompt strategy). A key is a stable identifier that matches ^[A-Za-z0-9_]+$ (ASCII letters, digits, underscore). Put display text in the section schema.label. An object schema gives properties as a map keyed by property key, or as the [{key, schema}] list that a GET returns; a key that repeats in the list gets 400. The order of the map or the list is the order of the properties.

description
string | null

Human-readable description. Omitted or null clears it.

Maximum string length: 500
Ejemplo:

"Intake template for the cardiology outpatient clinic."

specialty
enum<string> | null

Medical specialty of the template, given as the enum key (such as CARDIOLOGY) or its camelCase value (such as cardiology). Replaces the stored specialty. Without it, the specialties list of a GET body replaces the stored list; omit both to keep the stored one. An update does not distribute copies.

Opciones disponibles:
acupuncture,
alternativeMedicine,
ayurvedicMedicine,
chiropractic,
herbalMedicine,
homeopathy,
naturopathy,
traditionalChineseMedicine,
cosmeticDentistry,
dentistry,
developmentalBehavioralPediatrics,
endodontics,
forensicDentistry,
maxillofacialProsthodontics,
oralMaxillofacialSurgery,
oralMedicine,
oralPathology,
oralSurgery,
orthodontics,
pediatricDentistry,
periodontics,
prosthodontics,
addictionPsychiatry,
adolescentMedicine,
aerospaceMedicine,
allergyImmunology,
andrology,
anesthesiology,
anesthesiologyCriticalCare,
bariatricSurgery,
breastRadiology,
breastSurgery,
cardiacSurgery,
cardiovascularSurgery,
cardiology,
cardiovascularDisease,
cardiovascularRiskProgram,
childAbusePediatrics,
childAdolescentPsychiatry,
childNeurology,
childWelfareSocialWork,
clinicalNeurophysiology,
clinicalSocialWork,
colorectalSurgery,
communityMedicine,
communitySocialWork,
consultationLiaisonPsychiatry,
cosmeticDermatology,
craniofacialTrauma,
dermatology,
dermoscopy,
diabetes,
diagnosticRadiology,
electrophysiology,
emergencyCriticalCare,
emergencyMedicine,
emergencyPsychiatry,
endocrineSurgery,
endocrinology,
epilepsy,
facialPlasticSurgery,
familyMedicine,
familySocialWork,
footAnkleSurgery,
forensicPsychiatry,
forensicSocialWork,
gastroenterology,
generalMedicine,
generalMedicinePsychiatry,
generalSurgery,
geriatricMedicine,
geriatricPsychiatry,
geriatricSocialWork,
ginecology,
gynecologicOncology,
gynecologicSurgery,
gynecology,
handSurgery,
headNeckSurgery,
headacheMedicine,
heartFailureTransplantCardiology,
hematology,
hepatobiliarySurgery,
hipKneeSurgery,
hospitalist,
infectiousDisease,
internalCriticalCare,
internalMedicine,
interventionalCardiology,
interventionalRadiology,
maternalFetalMedicine,
medicalSocialWork,
militarySocialWork,
minimallyInvasiveGynecologicSurgery,
mohsSurgery,
musculoskeletalRadiology,
neonatology,
nephrology,
neurocriticalCare,
neuroimmunology,
neurology,
neuromuscularMedicine,
neuroradiology,
neurorehabilitation,
neurosurgery,
neurotology,
nuclearMedicine,
obstetrics,
obstetricsGynecology,
occupationalMedicine,
occupationalSocialWork,
oculoplasticSurgery,
oncology,
oncologySocialWork,
ophthalmology,
orthopedicHandSurgery,
orthopedicSportsMedicine,
orthopedicTrauma,
orthopedics,
otolaryngology,
painMedicine,
palliativeMedicine,
palliativeSocialWork,
pediatricAllergyImmunology,
pediatricAnesthesiology,
pediatricCardiology,
pediatricCriticalCare,
pediatricDermatology,
pediatricEmergencyMedicine,
pediatricEndocrinology,
pediatricENT,
pediatricGastroenterology,
pediatricHematologyOncology,
pediatricInfectiousDisease,
pediatricNephrology,
pediatricNeurology,
pediatricCardiacSurgery,
pediatricOncology,
pediatricOphthalmology,
pediatricOrthopedics,
pediatricPalliativeCare,
pediatricPulmonology,
pediatricRadiology,
pediatricRheumatology,
pediatricSocialWork,
pediatricSurgery,
pediatricTrauma,
pediatricUrology,
pediatrics,
perinatalPsychiatry,
physicalMedicineRehab,
plasticSurgery,
prenatalCareProgram,
preventiveMedicine,
psychiatricSocialWork,
psychiatry,
psychosomaticMedicine,
publicHealth,
pulmonaryDisease,
pulmonology,
radiationOncologist,
radiationOncology,
reproductiveEndocrinology,
retinaSurgery,
rheumatology,
riasProgram,
manager,
schoolSocialWork,
shoulderElbowSurgery,
sleepMedicine,
socialWork,
spinalCordInjury,
spinalTrauma,
spineSurgery,
sportsMedicine,
substanceAbuseSocialWork,
surgicalOncology,
telemedicine,
thoracicSurgery,
transplantHepatology,
transplantSurgery,
traumaSurgery,
traumatology,
triage,
unknown,
urgentCare,
urologicOncology,
urology,
vascularSurgery,
nursing,
clinicalNutrition,
eatingDisorderNutrition,
gastroenterologicNutrition,
geriatricNutrition,
nutrition,
oncologyNutrition,
pediatricNutrition,
renalNutrition,
sportsNutrition,
clinicalPsychology,
counselingPsychology,
developmentalPsychology,
forensicPsychology,
geropsychology,
healthPsychology,
industrialOrganizationalPsychology,
militaryPsychology,
neuropsychology,
positivePsychology,
psychology,
rehabilitationPsychology,
schoolPsychology,
sportsPsychology,
occupationalTherapy,
physicalTherapy,
respiratoryTherapy,
speechTherapy,
therapy,
other
Ejemplo:

"CARDIOLOGY"

expectedUpdatedAt
string<date-time> | null

The updatedAt you last read. When set and the template changed after it, the update fails with 409 resource_conflict. Without it, the updatedAt of a GET body is used. Omit both to let the last write win.

Ejemplo:

"2026-04-20T14:30:00Z"

Respuesta

Respuesta exitosa

Response body for a Smart Template update.

id
string
requerido

Public ID of the updated template: the same id as in the path.

Ejemplo:

"mrc_a1b2c3d4e5f6g7h8"

name
string
requerido

Stored display name.

Ejemplo:

"Cardiology intake"

hash
string
requerido

Stored content hash after the update. It can change on an update.

Ejemplo:

"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"

updatedAt
string
requerido

ISO-8601 timestamp of this update. Send it as expectedUpdatedAt next time.

Ejemplo:

"2026-04-21T09:00:00Z"

example
Example · object

Shape of the final payload this template produces, keyed by section name. Leaf values are typed placeholders (<string>, <number>, <a | b> for enums, <YYYY-MM-DD> for dates); object sections nest, free-text sections are a single string.

Ejemplo: