Create Content Library Folder

post

/rest/api/v1.3/clFolders

Request

Body ()
Request Body
Root Schema : Content Library Folders
Type: object
Title: Content Library Folders
Show Source
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : Content Library Folders
Type: object
Title: Content Library Folders
Show Source
Back to Top

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": []
}


     
Back to Top