v1

latestOpenAPI 3.0.02026-07-1717466209.0 KB
External resources

Generate microdata resource

Export project data files to the chosen format, copy the artifact into documentation/, and create a dat/micro external resource with optional data-file links. May take several minutes while FastAPI export jobs complete.

post/resources/generate_microdata/{projectId}

Path parameters

projectIdinteger required

Request body

export_formatstring required

csv, dta, sav, xpt, or json

export_versionstring

Stata version when export_format is dta (default 14)

file_idsstring[]

Data file IDs (F1, F2, …); all files when omitted

zipboolean

Bundle exports into one ZIP (default true)

overwriteboolean

Replace existing generated resource for this format

max_wait_secondsinteger

Max seconds to wait per export job (default 900)

Response

Resource created, or already exists when overwrite is false