fields. Returns an export to poll for a download link. The file is a JSON array of dataset values; it does not contain pipeline run outputs.
Signature
Method signature onclient.datasets:
Parameters
string
required
Dataset ID with prefix
ds.."json-array"
default:"json-array"
Emit the selected fields as one JSON array. The default when format is omitted.
string[]
required
Fields to include in the export, identified by field name or id.
Returns
Promise<ExportJob>
An asynchronous dataset export job. Failed jobs include an error. Successful file exports include a download URL; exports prepared for training cost estimates include a validation report and a null download URL.
ExportId
required
Dataset export ID with prefix
dex..DatasetId
required
Dataset ID with prefix
ds.."running" | "succeeded" | "failed"
required
Export state:
running while preparing, succeeded when complete, or failed after an error.string
required
Time the export was requested, as an ISO 8601 timestamp.
object
required
Download details for the export.
DatasetExportReport | null
required
Training-example validation report, or null for ordinary file exports or before validation finishes.
object | null
required
Failure details, or null when the export has not failed.
Errors
HTTP errors throwPotatoApiError. The endpoint documents these error responses:
HTTP endpoint:
POST /datasets/{datasetId}/exports.