Save a recipe or exercise
curl --request PUT \
--url https://sandbox.rx.tera.health/v1/patient/library/{library_item_id}/favorite \
--header 'Authorization: Bearer <token>'const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.rx.tera.health/v1/patient/library/{library_item_id}/favorite', 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/library/{library_item_id}/favorite"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)Library
Save a recipe or exercise
Adds it to the patient’s favorites (GET /v1/patient/library?favorites=true). Saving it again changes nothing.
Plans: AI + health and fitness coaches (ai_health_fitness), AI only (ai_only).
PUT
/
v1
/
patient
/
library
/
{library_item_id}
/
favorite
Save a recipe or exercise
curl --request PUT \
--url https://sandbox.rx.tera.health/v1/patient/library/{library_item_id}/favorite \
--header 'Authorization: Bearer <token>'const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.rx.tera.health/v1/patient/library/{library_item_id}/favorite', 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/library/{library_item_id}/favorite"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(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
Response
Saved.

