Tests
Update a Test
Orders
At-home Phlebotomy
Patient Service Center (PSC)
Tests
Health Insurance
Tests
Update a Test
PATCH
/
v3
/
lab_tests
/
{lab_test_id}
from vital.client import Vital
from vital.environment import VitalEnvironment
client = Vital(
api_key="YOUR_API_KEY",
environment=VitalEnvironment.SANDBOX
)
data = client.lab_tests.update_lab_test(
lab_test_id="<lab_test_id>",
name="<name>",
active=<True>,
)
{
"id": "5af405fc-fafb-49e8-b0bf-fe9d91df6a7d",
"slug": "a94e3005-new-test",
"name": "New test",
"sample_type": "serum",
"method": "at_home_phlebotomy",
"price": 0.0,
"is_active": true,
"status": "active",
"fasting": false,
"lab": {
"id": 26,
"slug": "quest",
"name": "Quest",
"first_line_address": "100 Tri State International #100",
"city": "Lincolnshire",
"zipcode": "60069",
"collection_methods": ["at_home_phlebotomy", "walk_in_test"],
"sample_types": ["serum", "saliva", "urine"]
},
"markers": [
{
"id": 6859,
"name": "17-Hydroxyprogesterone",
"slug": "17-hydroxyprogesterone",
"description": "17-Hydroxyprogesterone",
"lab_id": 26,
"provider_id": "17180",
"type": "biomarker",
"unit": null,
"price": "N/A",
"aoe": null,
"a_la_carte_enabled": true
},
{
"id": 8213,
"name": "17-Hydroxypregnenolone",
"slug": "17-hydroxypregnenolone",
"description": "17-Hydroxypregnenolone",
"lab_id": 26,
"provider_id": "8352",
"type": "biomarker",
"unit": null,
"price": "N/A",
"aoe": null,
"a_la_carte_enabled": true
}
],
"is_delegated": false,
"auto_generated": false
}
from vital.client import Vital
from vital.environment import VitalEnvironment
client = Vital(
api_key="YOUR_API_KEY",
environment=VitalEnvironment.SANDBOX
)
data = client.lab_tests.update_lab_test(
lab_test_id="<lab_test_id>",
name="<name>",
active=<True>,
)
{
"id": "5af405fc-fafb-49e8-b0bf-fe9d91df6a7d",
"slug": "a94e3005-new-test",
"name": "New test",
"sample_type": "serum",
"method": "at_home_phlebotomy",
"price": 0.0,
"is_active": true,
"status": "active",
"fasting": false,
"lab": {
"id": 26,
"slug": "quest",
"name": "Quest",
"first_line_address": "100 Tri State International #100",
"city": "Lincolnshire",
"zipcode": "60069",
"collection_methods": ["at_home_phlebotomy", "walk_in_test"],
"sample_types": ["serum", "saliva", "urine"]
},
"markers": [
{
"id": 6859,
"name": "17-Hydroxyprogesterone",
"slug": "17-hydroxyprogesterone",
"description": "17-Hydroxyprogesterone",
"lab_id": 26,
"provider_id": "17180",
"type": "biomarker",
"unit": null,
"price": "N/A",
"aoe": null,
"a_la_carte_enabled": true
},
{
"id": 8213,
"name": "17-Hydroxypregnenolone",
"slug": "17-hydroxypregnenolone",
"description": "17-Hydroxypregnenolone",
"lab_id": 26,
"provider_id": "8352",
"type": "biomarker",
"unit": null,
"price": "N/A",
"aoe": null,
"a_la_carte_enabled": true
}
],
"is_delegated": false,
"auto_generated": false
}
Authorizations
Vital Team API Key
Path Parameters
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
from vital.client import Vital
from vital.environment import VitalEnvironment
client = Vital(
api_key="YOUR_API_KEY",
environment=VitalEnvironment.SANDBOX
)
data = client.lab_tests.update_lab_test(
lab_test_id="<lab_test_id>",
name="<name>",
active=<True>,
)
{
"id": "5af405fc-fafb-49e8-b0bf-fe9d91df6a7d",
"slug": "a94e3005-new-test",
"name": "New test",
"sample_type": "serum",
"method": "at_home_phlebotomy",
"price": 0.0,
"is_active": true,
"status": "active",
"fasting": false,
"lab": {
"id": 26,
"slug": "quest",
"name": "Quest",
"first_line_address": "100 Tri State International #100",
"city": "Lincolnshire",
"zipcode": "60069",
"collection_methods": ["at_home_phlebotomy", "walk_in_test"],
"sample_types": ["serum", "saliva", "urine"]
},
"markers": [
{
"id": 6859,
"name": "17-Hydroxyprogesterone",
"slug": "17-hydroxyprogesterone",
"description": "17-Hydroxyprogesterone",
"lab_id": 26,
"provider_id": "17180",
"type": "biomarker",
"unit": null,
"price": "N/A",
"aoe": null,
"a_la_carte_enabled": true
},
{
"id": 8213,
"name": "17-Hydroxypregnenolone",
"slug": "17-hydroxypregnenolone",
"description": "17-Hydroxypregnenolone",
"lab_id": 26,
"provider_id": "8352",
"type": "biomarker",
"unit": null,
"price": "N/A",
"aoe": null,
"a_la_carte_enabled": true
}
],
"is_delegated": false,
"auto_generated": false
}