Skip to main content
Send an optional name and profile. A profile creates typed fields and mappings that validate file uploads. Without a profile, uploaded rows are stored in the “uploaded” field. Returns the dataset.

Signature

Method signature on client.datasets:

Parameters

string
required
Project ID with prefix pp..
string
Name of the dataset; defaults to New Dataset.
"instruction" | "chat-sft"
Create typed fields and upload mappings with “chat-sft” (messages, tools, split, assistant, source_ref) or “instruction” (prompt, completion, split). Without a profile, uploaded rows are stored in the “uploaded” field.

Returns

Promise<Dataset> A dataset within a project.
DatasetId
required
Dataset ID with prefix ds..
ProjectId
required
Project ID with prefix pp..
string
required
Name of the dataset.
boolean
required
Whether the dataset is hidden from ordinary dataset lists.
DatasetProfileStamp | null
required
Profile used to create the dataset fields, or null for a dataset without a profile.
string
required
Time the dataset was created, as an ISO 8601 timestamp.

Errors

HTTP errors throw PotatoApiError. The endpoint documents these error responses: HTTP endpoint: POST /projects/{projectId}/datasets.