Skip to Content

POST /simulation/export

Export Simulations

Export all simulations as a clean, denormalized CSV.

Request Body (ExportSimulationApiRequest)

FieldTypeRequiredDescription
simulation_idstringNoUUID of the simulation to export
searchstringNoSearch query text
filter_scenario_idsstring[]NoFilter by scenario UUIDs
filter_cohort_idsstring[]NoFilter by cohort UUIDs
filter_department_idsstring[]NoFilter by department UUIDs
idempotency_keystringNoIdempotency key — replays the prior export instead of re-running
softbooleanNoStage the export dormant (active=False); ack with accept activates it
acceptbooleanNoAck: True promotes the staged export, False rejects. Only meaningful with idempotency_key

Response (ExportSimulationApiResponse)

FieldTypeRequiredDescription
file_idstringYesUUID of the files_resource holding the export CSV
file_namestringYesSuggested download file name
row_countintegerYesNumber of data rows in the export
idempotency_keystringNoServer-minted soft-call key (audit call_id). On a soft propose, echo this back with accept to promote/reject the staged export.
Last updated on