---
title: "Duplicate dataset v2"
method: POST
path: "/v1/datasets-v2/{datasetId}/duplicate"
tags: ["Datasets v2"]
---

# Duplicate dataset v2

`POST /v1/datasets-v2/{datasetId}/duplicate`

## Request

- Base URL: `https://api.lunary.ai`
- URL: `https://api.lunary.ai/v1/datasets-v2/{datasetId}/duplicate`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lunary/apis/lunary-api/docs/v1/datasets-v2/:datasetId/duplicate/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `datasetId` string, uuid, required

## Response `201`

Duplicated dataset

- DatasetV2
  - `id` string, uuid
  - `projectId` string, uuid
  - `ownerId` string, uuid, nullable
  - `ownerName` string, nullable
  - `ownerEmail` string, nullable
  - `name` string
  - `description` string, nullable
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `itemCount` integer
  - `currentVersionId` string, uuid, nullable
  - `currentVersionNumber` integer
  - `currentVersionCreatedAt` string, date-time, nullable
  - `currentVersionCreatedBy` string, uuid, nullable
  - `currentVersionRestoredFromVersionId` string, uuid, nullable
  - `evaluatorSlot1Id` string, uuid, nullable
  - `evaluatorSlot2Id` string, uuid, nullable
  - `evaluatorSlot3Id` string, uuid, nullable
  - `evaluatorSlot4Id` string, uuid, nullable
  - `evaluatorSlot5Id` string, uuid, nullable

---

[API](https://skmtc.dev/lunary/apis/lunary-api.md) - [All operations](https://skmtc.dev/lunary/apis/lunary-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lunary/apis/lunary-api/revisions/a38233713bdc?raw)
