---
title: "Copy the dataset, as well as the folders and files within the dataset
into a space, return the new dataset id"
method: POST
path: "/datasets/{ds_id}/copyDatasetToSpace/{space_id}"
tags: ["datasets"]
---

# Copy the dataset, as well as the folders and files within the dataset
into a space, return the new dataset id

`POST /datasets/{ds_id}/copyDatasetToSpace/{space_id}`

Check AddResourceToSpace permission.

## Path parameters

- `ds_id` string, required
- `space_id` string, required

## Response `200`

OK

## Other responses

- `404` — The requested resource was not found

---

[API](https://skmtc.net/clowder-framework/apis/clowder.md) · [All operations](https://skmtc.net/clowder-framework/apis/clowder/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clowder-framework/clowder/revisions/bcd187478e0d/schema)
