Update Recommendation
Some Recommendation attributes may be updated via a PUT request:
- notify_email
- notify_sms
- note
To add, modify or remove items from the recommendation, you must use the individual calls on the items themselves.
Return
This call returns the entire recommendation object.
API Call
PUT
/V1/dispensary/recommendation/:recommendation_id
Path Parameters
- recommendation_idStringrequiredDescription
Header Parameters
- AuthorizationstringrequiredDescription
Body Parameters
- recommendationObjectDescription
- notify_emailBooleanDescription
- notify_smsBooleanDescription
- notestringDescription
curl
curl --location -g --request POST 'https://{{api_host}}/rest/{{scope}}/V1/dispensary/recommendation/6e6e08cf-e2a0-4e0e-9359-e2e42896b56e' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--data-raw '{
"recommendation": {
"notify_email" : "1",
"note":"Recommendation to help with your lipids."
}
}'200
{
"recommendation_id": "6e6e08cf-e2a0-4e0e-9359-e2e42896b56e",
"note": "Recommendation to help with your respiratory function",
"status": "pending",
"patient": {
"patient_id": 71,
"firstname": "Juergen",
"lastname": "Schreck",
"email": "[email protected]"
},
"practice_id": 1,
"notify_email": 1,
"notify_sms": 0,
"practice_conversion_url": "https://uat.gethealthy.store/admin/dispensary/recommendation/convert/rid/6e6e08cf-e2a0-4e0e-9359-e2e42896b56e/",
"patient_conversion_url": "https://uat.gethealthy.store/dispensary/recommendation/convert/rid/6e6e08cf-e2a0-4e0e-9359-e2e42896b56e/"
"items": [
{
"item_id": "54dddeea-19d6-4914-8b52-4064f050737c",
"sku": "SF811",
"qty": 1,
"autoship_interval": "once",
"fulfillment_type": "LC",
"note": "Item specific Note",
"additional_options":[],
"availability": "In Stock",
"doctor_id": 25,
"location_id": 123
},
{
"item_id": "179a7ef1-e1c7-42a2-a468-bd50dbee71f8",
"sku": "SP607",
"qty": 2,
"autoship_interval": "30d",
"fulfillment_type": "1L",
"note": "This is really good stuff",
"availability": "In Stock",
"additional_options":[]
}
]
}