---
title: "Associate a dataset to a space"
method: POST
path: "/spaces/{spaceId}/addDatasetToSpace/{datasetId}"
tags: ["spaces"]
---

# Associate a dataset to a space

`POST /spaces/{spaceId}/addDatasetToSpace/{datasetId}`

Spaces are groupings of collections and datasets.

## Path parameters

- `spaceId` string, required
- `datasetId` string, required

## Response `200`

OK

---

[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/versions/bcd187478e0d/schema)
