Skip to main content
POST
/
datasets
/
create_dataset
Create Dataset
curl --request POST \
  --url https://api.getflex.ai/v1/datasets/create_dataset \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "name": "<string>",
  "train_rows_count": 123,
  "eval_rows_count": 123,
  "max_tokens": 123,
  "total_tokens": 123,
  "type": "<string>"
}'
{
  "id": "<string>",
  "name": "<string>",
  "train_rows_count": 123,
  "eval_rows_count": 123,
  "max_tokens": 123,
  "total_tokens": 123,
  "train_path": "<string>",
  "eval_path": "<string>",
  "type": "<string>",
  "user_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
id
string
name
string
train_rows_count
integer
eval_rows_count
integer
max_tokens
integer
total_tokens
integer
type
string

Response

Successful response

id
string
name
string
train_rows_count
integer
eval_rows_count
integer
max_tokens
integer
total_tokens
integer
train_path
string
eval_path
string
type
string
user_id
string