POST
/
datasets
/
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

Response

200
application/json

Successful response

The response is of type object.