---
title: "Create new folder"
method: POST
path: "/api/v1/assets/folders"
tags: ["Web Assets"]
---

# Create new folder

`POST /api/v1/assets/folders`

Create a new folder at the specified path with the provided configuration details

## Request body

- NewFolderForm
  - `assetPath` string, required — Full path where the folder should be created or updated including site and folder structure. Must end with '/'
  - `data` FolderDetail, required — Folder configuration details
    - `title` string, required — Display title for the folder
    - `sortOrder` integer — Sort order for the folder within its parent directory
    - `showOnMenu` boolean — Whether the folder should be visible in navigation menus
    - `fileMasks` string[] — List of file patterns that are allowed in this folder (e.g., *.jpg, *.pdf)
    - `defaultAssetType` string — Default asset type for files uploaded to this folder

## Response `200`

Folder created successfully

- ResponseEntityView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` object
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `400` — Invalid request data or folder path
- `401` — Unauthorized access
- `409` — Folder already exists at the specified path

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jostens/dotcms-rest-api/revisions/a088fe9f515c/schema)
