Datasets
Manage microdata datasets for tax-benefit simulations.
List datasets
GET
/datasetsRetrieve all available datasets.
https://v2.api.policyengine.org/datasets
Get dataset
GET
/datasets/:dataset_idRetrieve a specific dataset by ID.
Path parameters
https://v2.api.policyengine.org/datasets/550e8400-e29b-41d4-a716-446655440000
Create dataset
POST
/datasetsCreate a new dataset. The filepath should reference a file in Supabase Storage.
Request body
https://v2.api.policyengine.org/datasets
Request parameters
namestring - Human-readable dataset namedescriptionstring | null - Optional descriptionfilepathstring - Path to HDF5 file in storageyearinteger - Simulation year for this datasettax_benefit_model_version_idUUID - Model version this dataset is compatible withDelete dataset
DELETE
/datasets/:dataset_idDelete a dataset by ID.
Path parameters
https://v2.api.policyengine.org/datasets/550e8400-e29b-41d4-a716-446655440000
Dataset object
idUUID - Unique identifiernamestring - Human-readable namedescriptionstring | null - Optional descriptionfilepathstring - Path in storage bucketyearinteger - Simulation yearcreated_atdatetime - Creation timestamp