cURL
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>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful response
The response is of type object.
object