Download current detail CSV¶
POST /data-dashboards/{dashboard_id}/charts/{chart_id}/drill-through/download strictly parses the same request as preview. It rereads the dashboard and currently available sources, then executes detail SQL as the current identity. It does not download the cached 10 preview rows or guarantee the same snapshot as an earlier preview.
Generated detail SQL has no preview LIMIT, but data remains subject to SQL download total-byte and in-process concurrency limits. Unlimited export is not guaranteed. The chart and dimensions are validated before acquiring a download slot. A bounded temporary file is fully prepared and rewound before CSV delivery. Size overflow returns 413; busy returns 429. Failures close/delete temporary files and release slots, retaining both cleanup and original errors. Close after download removes the temporary file. Recovery from a complete process failure remains unverified.
Success uses Content-Type text/csv; charset=utf-8, Content-Length, and an attachment filename dashboard-drill-through-TIMESTAMP.csv. The API returns no download URL. SDK callers must read and close Body; CLI uses –output. HTTP errors may still contain JSON; a filename extension does not prove successful download.
Unsupported drill-through returns 400 with string code/message. Parameter binding errors use string code/msg; general SQL download errors use integer code/message. See result and error objects. A code/msg/data success envelope does not apply to CSV.