# Lifestyle Update

| **API URL**     | {{url}}/spice-service/patient-lifestyle/update |
| --------------- | ---------------------------------------------- |
| **Method**      | PUT                                            |
| **Description** | Patient Lifestyle Update                       |

#### **Input:** <a href="#lifestyleupdate-input" id="lifestyleupdate-input"></a>

| **Field Name**        | **Type** | **Mandatory** | **Example**                                                                                                                                     |
| --------------------- | -------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| Authorization(Header) | String   | Yes           | Bearer eyJlbmMiOiJBMTI4R0NNIiwiYWxnIjoiUlNBLU9BRVAtMjU2In0.MCm0mJDfpfjlr10Uok79-kTF7fv9Tn7cI5m2WsRDGUd9VS7iRmfbszjuc1-w5D-PYt9CdVxRMGBQlzYauhnI |

#### **Input:** <a href="#lifestyleupdate-input-.1" id="lifestyleupdate-input-.1"></a>

| **Field Name**      | **Type** | **Mandatory** | **Example**             |
| ------------------- | -------- | ------------- | ----------------------- |
| id                  | Integer  | No            | 3                       |
| lifestyleAssessment | String   | No            | Listyle assessment note |
| otherNote           | String   | No            | Note                    |

#### **Sample Input:** <a href="#lifestyleupdate-sampleinput" id="lifestyleupdate-sampleinput"></a>

#### { <a href="#lifestyleupdate" id="lifestyleupdate"></a>

&#x20; "lifestyles": \[

&#x20;   {

&#x20;     "id": 7,

&#x20;     "lifestyleAssessment": "Listyle assessment note",

&#x20;     "otherNote": "others"

&#x20;   }

&#x20; ],

&#x20; "patientTrackId": 25,

&#x20; "patientVisitId": 33

}

#### **Sample Output:** <a href="#lifestyleupdate-sampleoutput" id="lifestyleupdate-sampleoutput"></a>

```
  {
  "message": "Patient Nutrition Lifestyle updated successfully.",
  "entity": null,
  "status": true,
  "entityList": null,
  "responseCode": 200,
  "totalCount": null
}
```
