curl --request PATCH \
--url https://sandbox.rx.tera.health/v1/enrollments/{enrollment_id}/injections/{external_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/merge-patch+json' \
--data '
{
"missed": false,
"injected_at": "2026-10-26T08:00:00Z",
"dose_mg": 0.5
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/merge-patch+json'
},
body: JSON.stringify({missed: false, injected_at: '2026-10-26T08:00:00Z', dose_mg: 0.5})
};
fetch('https://sandbox.rx.tera.health/v1/enrollments/{enrollment_id}/injections/{external_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox.rx.tera.health/v1/enrollments/{enrollment_id}/injections/{external_id}"
payload = {
"missed": False,
"injected_at": "2026-10-26T08:00:00Z",
"dose_mg": 0.5
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/merge-patch+json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "0190f5c9-8091-72a3-9dc5-4e5f60718293",
"external_id": "inj-88213",
"log_date": "2026-10-26",
"created_at": "2026-10-26T08:01:30Z",
"updated_at": "2026-10-26T09:15:00Z"
}Correct an injection log
Corrects an injection your server sent, found by your external_id. A log the patient made in the app can’t be
changed here (403 log_not_owned). Returns the receipt with the new updated_at; the values stay with the care
team.
Changing a missed dose to taken (or back) does not close an alert already raised for it.
Error codes: log_not_owned (403), injection_incomplete (422) when the result is neither taken nor missed.
Scope: logs:write.
curl --request PATCH \
--url https://sandbox.rx.tera.health/v1/enrollments/{enrollment_id}/injections/{external_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/merge-patch+json' \
--data '
{
"missed": false,
"injected_at": "2026-10-26T08:00:00Z",
"dose_mg": 0.5
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/merge-patch+json'
},
body: JSON.stringify({missed: false, injected_at: '2026-10-26T08:00:00Z', dose_mg: 0.5})
};
fetch('https://sandbox.rx.tera.health/v1/enrollments/{enrollment_id}/injections/{external_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox.rx.tera.health/v1/enrollments/{enrollment_id}/injections/{external_id}"
payload = {
"missed": False,
"injected_at": "2026-10-26T08:00:00Z",
"dose_mg": 0.5
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/merge-patch+json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "0190f5c9-8091-72a3-9dc5-4e5f60718293",
"external_id": "inj-88213",
"log_date": "2026-10-26",
"created_at": "2026-10-26T08:01:30Z",
"updated_at": "2026-10-26T09:15:00Z"
}Authorizations
A brand's server, one OAuth client per brand and environment. Get a token with the
client_credentials grant and send it as Authorization: Bearer <token>. Tokens last 1 hour.
A brand server reads status and ids only; it never reads clinical content. A platform partner holds one
client for all its brands and gets one token per brand, naming it with tenant_id.
Path Parameters
Your external_id for the log, URL-encoded.
Your own identifier, printable ASCII without spaces.
1 - 128^[\x21-\x7E]+$"brand-pt-48213"
Body
The injection fields to change. Send only what changes. The result must still be a dose taken (injected_at)
or missed (missed: true).
ISO 8601 in UTC.
"2026-10-26T14:05:00Z"
"2026-10-26"
0.5
For example abdomen_left, abdomen_right, thigh_left, thigh_right, arm_left, arm_right.
"abdomen_left"
1000"Slight redness at site"
Response
Corrected.
What a brand server gets back for a log. The values stay with the care team.
"0190f5c9-5d6e-7f70-8a92-1b2c3d4e5f60"
Your own identifier, printable ASCII without spaces.
1 - 128^[\x21-\x7E]+$"meal-77120"
A calendar date in the patient's time zone.
"2026-10-26"
ISO 8601 in UTC.
"2026-10-26T14:05:00Z"
When the log was last corrected; the same as created_at until then.
"2026-10-26T14:05:00Z"

