Delete an injection log
curl --request DELETE \
--url https://sandbox.rx.tera.health/v1/patient/injections/{log_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.rx.tera.health/v1/patient/injections/{log_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/patient/injections/{log_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)Logging
Delete an injection log
Deletes an injection logged by mistake. It leaves lists and the day’s rollups at once; its history is kept until the
brand’s retention period ends. Deleting it again returns 204. Only logs made in the app can be deleted.
Changing a missed dose to taken (or back) does not close an alert already raised for it.
Error code: log_not_owned (403).
Plans: AI + health and fitness coaches (ai_health_fitness), AI only (ai_only).
DELETE
/
v1
/
patient
/
injections
/
{log_id}
Delete an injection log
curl --request DELETE \
--url https://sandbox.rx.tera.health/v1/patient/injections/{log_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.rx.tera.health/v1/patient/injections/{log_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/patient/injections/{log_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)Authorizations
A 15-minute token bound to one patient and one enrollment, issued by POST /v1/oauth/token with the
token-exchange grant. Treat it as opaque. When it expires, exchange a fresh assertion; there is no refresh token.
Path Parameters
The log's id.
Response
Deleted.

