---
title: "Upload Files"
method: POST
path: "/api/assets/upload"
tags: ["Assets"]
---

# Upload Files

`POST /api/assets/upload`

## Request body

- UploadFilesDto
  - `targetDirectory` string, required — Target directory for the uploaded files

## Response `200`

Files uploaded successfully.

## Other responses

- `400` — Failed to upload files.

## Changes

- **2024-03-10** `9adbeb3f63e5` — 1 info
  - endpoint added
- **2023-10-20** `bbfe1dbc457f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/openwebgal/apis/webgal-terre-api/changes/api/assets/upload/post.md)

---

[API](https://skmtc.dev/openwebgal/apis/webgal-terre-api.md) · [All operations](https://skmtc.dev/openwebgal/apis/webgal-terre-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openwebgal/webgal-terre-api/revisions/2911d2db6a21/schema)
