Skip to main content
Returns nested field names, paths, and JSON Schemas inferred from the first file upload that passes validation. Later uploads are checked against that schema and do not refresh it. The fields array is empty until this inference completes.

Signature

Method signature on client.datasets:

Parameters

string
required
Dataset ID with prefix ds..

Returns

Promise<{ fields: InferredField[] }>
InferredField[]
required
Nested fields inferred from the first validated dataset upload.

Errors

HTTP errors throw PotatoApiError. The endpoint documents these error responses: HTTP endpoint: GET /datasets/{datasetId}/inferred-fields.