Create Dataset
Create a new dataset with rows and columns in your organization.
Create Dataset
Create a new dataset with a specified number of rows and columns for evaluation, testing, or data management.
https://api.futureagi.com/model-hub/develops/create-dataset-manually/ Authentication
Request Body
Name for the dataset. Must be unique within your organization. Maximum 2000 characters.
Number of rows to create. Must be between 1 and 100.
Number of columns to create. Must be between 1 and 100. Columns are created with default names (Column 1, Column 2, etc.) and text data type.
Example
{
"dataset_name": "My Evaluation Dataset",
"number_of_rows": 10,
"number_of_columns": 3
}
Response
Returns the created dataset details.
Dataset created successfully. Example Response
{
"message": "Dataset created successfully",
"dataset_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"rows_created": 10,
"columns_created": 3
}
Responses
200
Dataset created successfully. Returns the dataset ID, rows created, and columns created.
400
Bad request. Possible reasons:
- Missing dataset name -
dataset_nameis required. - Duplicate name - A dataset with this name already exists in your organization.
- Invalid row or column count -
number_of_rowsandnumber_of_columnsmust be positive integers between 1 and 100. - Invalid number format - The provided values are not valid integers.
401
Authentication credentials were not provided or are invalid.
429
Resource limit reached. Your organization has exceeded the dataset creation or row addition quota.
500
Internal server error. Failed to create the dataset.
Code Examples
import requests
url = "https://api.futureagi.com/model-hub/develops/create-dataset-manually/"
headers = {
"X-Api-Key": "YOUR_API_KEY",
"X-Secret-Key": "YOUR_SECRET_KEY",
"Content-Type": "application/json"
}
data = {
"dataset_name": "My Evaluation Dataset",
"number_of_rows": 10,
"number_of_columns": 3
}
response = requests.post(url, headers=headers, json=data)
print(response.json())const response = await fetch(
"https://api.futureagi.com/model-hub/develops/create-dataset-manually/",
{
method: "POST",
headers: {
"X-Api-Key": "YOUR_API_KEY",
"X-Secret-Key": "YOUR_SECRET_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
dataset_name: "My Evaluation Dataset",
number_of_rows: 10,
number_of_columns: 3
})
}
);
const data = await response.json();
console.log(data);curl -X POST "https://api.futureagi.com/model-hub/develops/create-dataset-manually/" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"dataset_name": "My Evaluation Dataset",
"number_of_rows": 10,
"number_of_columns": 3
}'