v4

OpenAPI 3.1.02026-08-03553368548.9 KB
hospital
hospital-sync

Sync Hospital Data

Sync hospital data (doctors, departments, specialities, locations) from external API to pgvector.

This endpoint fetches data from the hospital API and stores it in the structured_entities table with vector embeddings for semantic search.

Now uses the new sync system with history tracking and config updates.

post/api/v1/sync

Request body

sync_doctorsboolean
sync_departmentsboolean
sync_specialitiesboolean
sync_locationsboolean
force_updateboolean

Response

Successful Response

{"stackTrail":"paths:/api/v1/sync:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}