Skip to main content
Return field definitions, split status, and active write operations. Omit names for all fields, or send a comma-separated list of field names. The listAll* variant yields items across every page. The other variant returns one page with pagination metadata. See Pagination.

Signature

Method signatures on client.datasets:

Parameters

listAllFields()

string
required
Dataset ID with prefix ds..
number
default:"20"
Maximum number of results to return; defaults to 20.
number
default:"0"
Number of results to skip before this page; defaults to 0.
string
Comma-separated field names to include; omit to list all fields.

listFieldsPage()

string
required
Dataset ID with prefix ds..
number
default:"20"
Maximum number of results to return; defaults to 20.
number
default:"0"
Number of results to skip before this page; defaults to 0.
string
Comma-separated field names to include; omit to list all fields.

Returns

listAllFields() result

AsyncGenerator<DatasetField> Yields one item at a time. The fields below describe each yielded item. A field of a dataset.
DatasetFieldId
required
Dataset field ID with prefix df..
string
required
Name of the dataset field.
string | null
required
Description of the field, or null when none is set.
JsonSchema
required
JSON Schema that values in this field must satisfy.See the HTTP endpoint for the supported JSON Schema fields.
boolean
required
True when this field is excluded from pipeline input bindings. The field is still included in dataset field responses.
object | null
required
Set when this is a split field: each row’s value names its part.
DatasetFieldOperation[]
required
Operations currently writing to this field. A split or slice that reads the field is rejected while a blocking operation runs.
string
required
Time the field was created, as an ISO 8601 timestamp.

listFieldsPage() result

Promise<{ fields: DatasetField[]; pagination: Pagination }>
DatasetField[]
required
Nested fields inferred from the first validated dataset upload.
Pagination
required
Pagination information for this page.

Errors

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