Duplicate Rows

Create copies of specific rows within a dataset.

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

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 dataset.

Request body

row_ids array Optional

Array of row UUIDs to duplicate.

selected_all_rows boolean Optional

Whether to duplicate all rows. Defaults to false.

num_copies integer Optional
Number of copies per row.

Response

200 OK
data object
Row duplication details.
message string
Confirmation message.
source_rows integer
Number of source rows duplicated.
copies_per_row integer
Number of copies created per row.
total_new_rows integer
Total number of new rows created.
new_row_ids array
UUIDs of the newly created rows.
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
Dataset not found.
429 Too Many Requests Optional
Resource limit reached.
500 Internal Server Error Optional
Unexpected server error.
GET /
Authentication
REQUEST
 
RESPONSE