---
title: "POST /model-hub/datasets/{dataset_id}/duplicate-rows/"
method: POST
path: "/model-hub/datasets/{dataset_id}/duplicate-rows/"
tags: ["model-hub"]
---

# POST /model-hub/datasets/{dataset_id}/duplicate-rows/

`POST /model-hub/datasets/{dataset_id}/duplicate-rows/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/datasets/{dataset_id}/duplicate-rows/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

## Request body

- DuplicateRowsRequest
  - `row_ids` string[]
  - `selected_all_rows` boolean
  - `num_copies` integer

## Response `200`

OK

- DuplicateRowsResponse
  - `status` boolean, required
  - `result` DuplicateRowsResult, required
    - `message` string, required
    - `source_rows` integer, required
    - `copies_per_row` integer, required
    - `total_new_rows` integer, required
    - `new_row_ids` string[], required

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
