---
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

## Changes

- **2021-07-23** `6ab2562e8acd` — 1 info
  - added the non-success response with the status `404`
- **2020-09-29** `8bd7fd33f496` — 1 info
  - removed the non-success response with the status `404`

[Change history](https://skmtc.dev/clowder-framework/apis/clowder/changes/datasets/attachmultiple/post.md)

---

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