---
title: Update Recommendation
slug: update-recommendation
icon: {"faIcon":"fa-solid fa-code"}
createdAt: 2022-12-20T17:02:10.000Z
---

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.

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "/V1/dispensary/recommendation/:recommendation_id",
  "name": "API Call",
  "method": "PUT",
  "request": {
    "pathParameters": [
      {
        "kind": "required",
        "name": "recommendation_id",
        "type": "String",
        "children": [],
        "description": "The recommendation_id to modify"
      }
    ],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "Authorization",
        "type": "string",
        "children": [],
        "description": "The Access Token"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "optional",
        "name": "recommendation",
        "type": "Object",
        "children": [
          {
            "kind": "optional",
            "name": "notify_email",
            "type": "Boolean",
            "description": "Whether to notify the patient via their email address. "
          },
          {
            "kind": "optional",
            "name": "notify_sms",
            "type": "Boolean",
            "description": "Wether to notify the patient via SMS text message. "
          },
          {
            "kind": "optional",
            "name": "note",
            "type": "string",
            "description": "A note for this recommendation"
          }
        ],
        "description": "ID of the cake to get"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "sT7x5eCla7VJy6tWNaRmD",
        "code": "{\n    \"recommendation_id\": \"6e6e08cf-e2a0-4e0e-9359-e2e42896b56e\",\n    \"note\": \"Recommendation to help with your respiratory function\",\n    \"status\": \"pending\",\n    \"patient\": {\n        \"patient_id\": 71,\n        \"firstname\": \"Juergen\",\n        \"lastname\": \"Schreck\",\n        \"email\": \"juergen+uat@gethealthy.store\"\n    },\n    \"practice_id\": 1,\n    \"notify_email\": 1,\n    \"notify_sms\": 0,\n    \"practice_conversion_url\": \"https://uat.gethealthy.store/admin/dispensary/recommendation/convert/rid/6e6e08cf-e2a0-4e0e-9359-e2e42896b56e/\",\n    \"patient_conversion_url\": \"https://uat.gethealthy.store/dispensary/recommendation/convert/rid/6e6e08cf-e2a0-4e0e-9359-e2e42896b56e/\"      \n    \"items\": [\n        {\n            \"item_id\": \"54dddeea-19d6-4914-8b52-4064f050737c\",\n            \"sku\": \"SF811\",\n            \"qty\": 1,\n            \"autoship_interval\": \"once\",\n            \"fulfillment_type\": \"LC\",\n            \"note\": \"Item specific Note\",\n            \"additional_options\":[],\n            \"availability\": \"In Stock\",\n            \"doctor_id\": 25,\n            \"location_id\": 123\n        },\n        {\n            \"item_id\": \"179a7ef1-e1c7-42a2-a468-bd50dbee71f8\",\n            \"sku\": \"SP607\",\n            \"qty\": 2,\n            \"autoship_interval\": \"30d\",\n            \"fulfillment_type\": \"1L\",\n            \"note\": \"This is really good stuff\",\n            \"availability\": \"In Stock\",\n            \"additional_options\":[]\n        }\n    ]\n}",
        "language": "200",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "sT7x5eCla7VJy6tWNaRmD"
  },
  "examples": {
    "languages": [
      {
        "id": "_58s1Z15GkQwAtrVFZQ4E",
        "code": "curl --location -g --request POST 'https://{{api_host}}/rest/{{scope}}/V1/dispensary/recommendation/6e6e08cf-e2a0-4e0e-9359-e2e42896b56e' \\\n--header 'Content-Type: application/json' \\\n--header 'Authorization: Bearer {{access_token}}' \\\n--data-raw '{\n    \"recommendation\": {\n        \"notify_email\" : \"1\",\n        \"note\":\"Recommendation to help with your lipids.\"\n    }\n}'",
        "language": "curl",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "_58s1Z15GkQwAtrVFZQ4E"
  },
  "description": "",
  "currentNewParameter": {
    "label": "Header Parameter",
    "value": "headerParameters"
  },
  "autoGeneratedAnchorSlug": "api-call",
  "legacyHash": "SqzjFv70KmmYJSrnE8RbA"
}
```
:::

