---
title: "Upload files and attach to given dataset"
method: POST
path: "/datasets/{id}/urls"
tags: ["datasets"]
---

# Upload files and attach to given dataset

`POST /datasets/{id}/urls`

This will take an URL of file object that are added to this dataset,
the file source will be added as metadata. Request body takes key-value
pairs for file url, the key can be fileurl, weburl or url.
This can also add metadata at the same time.

## Path parameters

- `id` string, required

## Request body

- object

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