Create Content Library Folder
post
/rest/api/v1.3/clFolders
Request
Request Body
Root Schema : Content Library Folders
Type:
object
Title:
Show Source
Content Library Folders
-
folderPath:
string
The complete path of the folder starting with /contentlibrary.
Response
Supported Media Types
- application/json
Default Response
Root Schema : Content Library Folders
Type:
object
Title:
Show Source
Content Library Folders
-
folderPath:
string
The complete path of the folder starting with /contentlibrary.
Examples
This interface is used to create a content library folder in the location specified by the folderPath
parameter in the request body.
A successful request requires the following headers:
FIELDS | DESCRIPTION |
---|---|
Authorization | <AUTH_TOKEN> |
Content-Type | application/json |
Sample Json Body:
{ "folderPath" : <folderPath> }
Sample Response: Success
{ "folderPath": "/contentlibrary/abn/f1/f2/f3", "links": [ { "rel": "self", "href": "/rest/api/v1.3/clFolders", "method": "POST" }, { "rel": "listContentLibraryFolders", "href": "/rest/api/v1.3/clFolders/contentlibrary/abn/f1/f2/f3", "method": "GET" }, { "rel": "deleteContentLibraryFolder", "href": "/rest/api/v1.3/clFolders/contentlibrary/abn/f1/f2/f3", "method": "DELETE" } ] }
Sample Response: Failure
{ "type": "", "title": "Folder already exists", "errorCode": "FOLDER_ALREADY_EXISTS", "detail": "/contentlibrary/abn/f1/f2/f3", "errorDetails": [] }