Repository navigation
Description
Problem Statement
The PUT /api/v1/assets/folders endpoint has critical field mapping issues and missing functionality:
-
Confusing Field Mappings:
- The
namefield actually updates the folder'stitle - The
titlefield incorrectly updates thedescriptioninstead - This inconsistent behavior makes the API confusing and error-prone
- The
-
Missing URL Update Capability: There is no way to update a folder's URL/path through this endpoint
These issues prevent users from intuitively managing folder metadata through the REST API and require knowledge of undocumented field mappings.
Steps to Reproduce
Issue 1: Confusing field mappings
-
Create a folder via API or UI with specific title and description values
-
Send a PUT request with the
namefield:{ "assetPath": "//demo.dotcms.com/my-folder/", "data": { "name": "New Name Value" } } -
Observe that the folder's title is updated (not a "name" property)
-
Send a PUT request with the
titlefield:{ "assetPath": "//demo.dotcms.com/my-folder/", "data": { "title": "New Title Value" } } -
Observe that the folder's description is updated instead of the title
Issue 2: Cannot update folder URL
- Attempt to update a folder's URL/path using the endpoint
- Observe that:
- The
assetPathparameter is used to locate the folder, so changing it causes a "folder not found" error - The
dataobject does not accept a URL/path field to specify the new location
- The
- Result: No way to update folder URL through this endpoint
Current confusing payload structure:
{
"assetPath": "//demo.dotcms.com/blog-new/",
"data": {
"name": "blog", // ← Actually updates "title"
"title": "My blog", // ← Actually updates "description"
"defaultAssetType": "FileAsset",
"showOnMenu": true,
"sortOrder": 0
}
}Acceptance Criteria
- Field mappings are consistent and intuitive:
titlefield updates the folder's title propertydescriptionfield updates the folder's description property- Remove or deprecate the confusing
namefield
- API documentation clearly describes all supported fields and their mappings
- The endpoint supports updating a folder's URL/path
- Breaking changes are properly communicated if
namefield is removed - Unit and integration tests verify correct field mappings
Proposed Solution
-
Field Mapping Fix:
- Make
titlefield update the folder's title (correct behavior) - Make
descriptionfield update the folder's description - Either remove
namefield or make it an alias fortitlewith deprecation notice
- Make
-
URL Update Support: Add a
newPathorpathfield in thedataobject to support moving folders:{ "assetPath": "//demo.dotcms.com/old-path/", "data": { "path": "/new-path/", "title": "Updated Title" } }
Video Evidence
Screen.Recording.2025-12-04.at.12.49.22.PM-1.mov
dotCMS Version
Latest main version
Proposed Objective
Quality Assurance
Proposed Priority
Priority 2 - High
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]PUT /api/v1/assets/folders: Confusing field mappings and missing URL update capability[/-][+][DEFECT] Updating Folders: Confusing field mappings and missing URL update capability[/+]fabrizzio-dotCMS commentedon Dec 4, 2025
__Screen.Recording.2025-12-04.at.3.09.57.PM.mov
#34016
github-actions commentedon Dec 5, 2025
PRs linked to this issue
PRs linked to this issue
PRs linked to this issue
#34016
15 remaining items
fix(WebAssets) Folder Endpoint Refs: #34016 (#34037)
fix(ContentDrive) modernize Folders transformer Refs: 34016 (#34036)
zJaaal commentedon Dec 10, 2025
QA Passed
Now we are able to update the folder
titleandname.namewill update theurlof the folder andtitlethe friendly title that can be used in the Navigationfix(WebAssets) Folder Endpoint Refs: #34016 (#34037)
fix(ContentDrive) modernize Folders transformer Refs: 34016 (#34036)