---
title: "Create new dataset with no file"
method: POST
path: "/datasets/createempty"
tags: ["datasets"]
---

# Create new dataset with no file

`POST /datasets/createempty`

New dataset requiring zero files based on values of fields in attached
JSON. Returns dataset id as JSON object. Requires name, description, and
space. Optional list of existing file ids to add.

## Request body

- Dataset
  - `name` string, required
  - `description` string
  - `access` 'PUBLIC' | 'PRIVATE' | 'DEFAULT' | 'TRIAL'
  - `space` string[] — if space is not set or set as default, this dataset will not be add to any Spaces.
  - `collection` string[] — if collection is not set or set as default, this dataset will not be add to any Collections.
  - `existingfiles` string — the list of file ids, seperated with comma

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