Duplicate Dataset

Create a new dataset from selected rows of an existing dataset.

POST https://api.futureagi.com/model-hub/datasets/{id}/duplicate/

Authentication

X-Api-Key API Key Required

Your Future AGI API key used to authenticate requests. You can find and manage your API keys in the Dashboard under Settings.

X-Secret-Key Secret Key Required

Your Future AGI secret key, used alongside the API key for request authentication. This is generated when you create an API key in the Dashboard.

Path parameters

id UUID Required

UUID of the source dataset to duplicate.

Request body

name string Required

Name for the duplicated dataset.

row_ids array Optional

Array of row UUIDs to include in the duplicate.

selected_all_rows boolean Optional

Whether to include all rows. Defaults to false.

Response

200 OK
data object
Duplicated dataset details.
message string
Confirmation message.
new_dataset_id string
UUID of the duplicated dataset.
new_dataset_name string
Name of the duplicated dataset.
columns_copied integer
Number of columns copied.
rows_copied integer
Number of rows copied.
status string
Status of the API response.

Errors

400 Bad Request Optional
Invalid request parameters.
401 Unauthorized Optional
Invalid or missing API credentials.
404 Not Found Optional
The source dataset could not be found.
429 Too Many Requests Optional
Resource limit reached.
500 Internal Server Error Optional
Unexpected server error.
GET /
Authentication
REQUEST
 
RESPONSE