# GlucoseLog Create

| **API URL**     | {{url}}/spice-service/glucoselog/create |
| --------------- | --------------------------------------- |
| **Method**      | POST                                    |
| **Description** | Glucose log creation                    |

**Input:**

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

**Input**

| **Field Name**  | **Type**         | **Mandatory** | **Example**               |
| --------------- | ---------------- | ------------- | ------------------------- |
| glucoseUnit     | String           | Yes           | mmol/L                    |
| glucose         | String           | Yes           | 20                        |
| glucoseDateTime | Timestamp        | Yes           | 2023-05-26T17:01:13+05:30 |
| hba1cUnit       | String           | No            | mmol/L                    |
| glucoseType     | String           | Yes           | fbs                       |
| glucoseValue    | Double Precision | Yes           | 20                        |
| hba1c           | Double Precision | No            | 27                        |
| lastMealTime    | Timestamp        | Yes           | 2023-05-26T17:01:13+05:30 |

**Sample Input:**

{     "glucoseUnit": "mmol/L",     "glucose": 23,     "glucoseDateTime": "2023-05-26T17:01:13+05:30",     "hba1cUnit": "mmol/L",     "tenantId": 4,     "glucoseType": "fbs",     "patientTrackId": 25,     "glucoseValue": 23,     "hba1c": 27,     "lastMealTime": "2023-05-26T07:00:00+05:30" }

**Sample Output:**

```
  {
    "message": "Glucose Log added successfully.",
    "entity": null,
    "status": true,
    "entityList": null,
    "responseCode": 201,
    "totalCount": null
}
```
