---
title: "Update existing folder"
method: PUT
path: "/api/v1/assets/folders"
tags: ["Web Assets"]
---

# Update existing folder

`PUT /api/v1/assets/folders`

Update an existing folder's configuration details and optionally rename it

## Request body

- UpdateFolderForm
  - `assetPath` string, required — Full path where the folder should be created or updated including site and folder structure. Must end with '/'
  - `data` UpdateFolderDetail, 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
    - `name` string, required — New name for the folder. If provided, the folder will be renamed. The name is derived from the path if not specified

## Response `200`

Folder updated 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
- `403` — Insufficient permissions to update folder
- `404` — Folder not found 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)
