saveFolderProps(folderPath, properties, [options]) Last updated: 20. Apr 2026

API only function

Saves or updates properties for a specified folder.

Parameters

Name Type Description
folderPath string The absolute path to the folder.
properties object An object containing the folder properties to set or update.
options (optional)objectSpecify any of the following options parameters:
schema string The name of the folder schema to apply when saving.

Returns

An object with data about the saved item.

Example

Code example (JS)

JS is normal JavaScript either running in the browser or on the Docly™ server.
export default (folderPath, properties) => {
    // Save folder properties with a specific schema
    var result = docly.saveFolderProps(folderPath, properties, { "schema" : "My folder type" });
    return result;
}