33e87d9898ad

latestOpenAPI 3.1.02026-08-131,0321,3412.1 MB
APPS_V2

Export Dataset Endpoint

Export a dataset's full RBAC-scoped result as a CSV download.

Reuses the exact query pipeline POST /datasets/{name}/query runs (apps.engine.service.run_dataset_export, via run_dataset_query(..., export_mode=True)) — same RBAC resolve, same filter/sort/search normalization — so an export can never disagree with what the table endpoint would have shown for an identical request. No separate freshness endpoint or field here: freshness is delivered on the query endpoints' own response metas, not on a one-shot CSV download.

post/api/v2/datasets/{name}/export

Path parameters

namestring required

Headers

x-tenantstring required
x-user-group-idstring nullable
x-timezonestring nullable

Request body

filtersobject
start_datestring date required
end_datestring date required
granularity'day' | 'week' | 'month'
limitinteger
searchstring nullable
pageinteger
sizeinteger

Response

Successful Response

{"stackTrail":"paths:/api/v2/datasets/{name}/export:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}