Web Assets

Update existing folder

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

put/api/v1/assets/folders

Request body

assetPathstring required

Full path where the folder should be created or updated including site and folder structure. Must end with '/'

Example request

{
  "assetPath": "//demo.dotcms.com/my-new-folder/",
  "data": {
    "title": "My Documents Folder",
    "sortOrder": 100,
    "showOnMenu": true,
    "fileMasks": [
      "*.jpg",
      "*.png",
      "*.pdf"
    ],
    "defaultAssetType": "FileAsset",
    "name": "my-renamed-folder"
  }
}

Response

Folder updated successfully

entityobject
i18nMessagesMapobject
permissionsstring[]

Changes

No recorded changes to this endpoint across all 1 revision of this API.