> For the complete documentation index, see [llms.txt](https://spice.docs.medtroniclabs.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spice.docs.medtroniclabs.org/versions/spice-1.0/engineering/api-documentation/admin-services/lab-test/create.md).

# Create

| **API URL**     | {{url}}/admin-service/labtest/create |
| --------------- | ------------------------------------ |
| **Method**      | POST                                 |
| **Description** | Lab test create                      |

#### **Input** <a href="#labtest-create-input" id="labtest-create-input"></a>

| **Field Name** | **Type** | **Mandatory** | **Example** |
| -------------- | -------- | ------------- | ----------- |
| active         | String   | No            | true        |
| name           | String   | Yes           | Potassium   |
| displayOrder   | Number   | No            | 1           |
| name           | String   | Yes           | Potassium   |
| countryId      | Number   | Yes           | 4           |
| tenantId       | Number   | Yes           | 156         |

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

{ "active": true, "labTestResults": \[ { "name": "Potassium 2", "displayOrder": 0 } ], "name": "Potassium level7", "countryId": "4", "tenantId": "156" }

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

```
{
    "message": "Labtest created successfully.",
    "entity": null,
    "status": true,
    "entityList": null,
    "responseCode": 201,
    "totalCount": null
}
```
