← Lab portal
Bulk test catalog
Upload hundreds of tests per request — upsert by lab_partner_slug + code.
POST /api/internal/bulk-upsert
Headers: x-cron-secret: <CRON_SECRET>
{
"entity": "lab_tests",
"chunkSize": 100,
"rows": [
{
"lab_partner_slug": "hn-diagnostics-patna",
"code": "CBC",
"name": "Complete Blood Count",
"price_inr": 299,
"turnaround_hours": 12
}
]
}Cron: npm run cron:lab-bootstrap seeds Patna demo labs when empty.