# App Version

| **API URL**     | {{url}}/spice-service/static-data/app-version |
| --------------- | --------------------------------------------- |
| **Method**      | POST                                          |
| **Description** | Get the app version                           |

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

| **Field Name**         | **Type** | **Mandatory** | **Example**                                                                                                                             |
| ---------------------- | -------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| encounterType          | String   | Yes           | UNDER\_TWO\_MONTHS                                                                                                                      |
| gender                 | String   | Yes           | Male or Female                                                                                                                          |
| isPregnant             | Boolean  | Yes           | Pregnant state indication                                                                                                               |
| memberId               | Bigint   | Yes           | Member id                                                                                                                               |
| patientId              | BigInt   | Yes           | Patient reference id                                                                                                                    |
| provenance             | String   | Yes           | Provenance data                                                                                                                         |
| ticketType             | String   | Yes           | ICCM                                                                                                                                    |
| type                   | String   | Yes           | Medical Review                                                                                                                          |
| Authorization (Header) | String   | Yes           | Bearer 1ba363a1edf54402b51f58060aa52b11d30f99a490295adec900fdabf2b472181c0bfb165be18f4f5c430c7218a244bd29b9300d3471acc08197ccfb996118f6 |
| client                 | String   | Yes           | mob                                                                                                                                     |

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

{\
"encounterType": "UNDER\_TWO\_MONTHS",\
"gender": "female",\
"isPregnant": false,\
"memberId": "1",\
"patientId": "1",\
"provenance": {\
"modifiedDate": "2025-01-20T07:33:38.436Z",\
"organizationId": "9",\
"spiceUserId": 1713,\
"userId": "11"\
},\
"ticketType": "ICCM",\
"type": "medicalReview"\
}

#### **Output:** <a href="#appversion-v2-output" id="appversion-v2-output"></a>

| **Field Name** | **Type** | **Comments**                  |
| -------------- | -------- | ----------------------------- |
| message        | String   | The app version is up to date |
| status         | Boolean  | Response status               |

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

```
{
  "message": "App version is upto date.",
  "entity": true,
  "status": true,
  "entityList": null,
  "responseCode": 200,
  "totalCount": null
}
```
