---
title: "Attach multiple files to an existing dataset"
method: POST
path: "/datasets/attachmultiple"
tags: ["datasets"]
---

# Attach multiple files to an existing dataset

`POST /datasets/attachmultiple`

Add multiple files, by ID, to a dataset that is already in the system.
Requires file ids and dataset id.

## Request body

- object
  - `datasetid` string, required
  - `existingfiles` string, required — file ids seperated by 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)
