---
title: "Create Directory"
method: POST
path: "/assets/mkdir"
tags: ["Assets"]
---

# Create Directory

`POST /assets/mkdir`

## Request body

- MkDirDto
  - `source` string, required — The source path where the directory will be created
  - `name` string, required — Name for the new directory

## Response `200`

Directory created successfully.

## Other responses

- `400` — Failed to create directory.

## Changes

- **2024-03-04** `df980ba7aa16` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/openwebgal/apis/webgal-terre-api/changes/assets/mkdir/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/df980ba7aa16/schema)
