Creating a Folder

You can use the createFolder call to create a folder.

Sample URL

https://hostname:port/context/rest/v2/documents/createFolder

Method

POST

Parameters

Parameter Description
name Required.

The name of the new folder.

parentId Optional.

The document ID of the parent folder. The default value is the root folder.

parentPathoptional Optional.

The full path of the parent folder. If the parentId parameter is present, the parentPath parameter will be ignored. The default value is the root folder.

comments Optional.

Comments on the folder.

confidential Optional.

The acceptable values are true and false.

Response

HTTP Status Code Description
200 The folder is created successfully.
409 The folder already exists.

The folder will be returned if it has been created or already exists.

Example:

{"id":"142O00000001","latestVersion":0,"parentId":"141M000007EA","dateModified":0,"users":"O:admin:A","createdBy":"admin","shareId":"141M000007E9","name":"Z","type":"D","size":0}