Create content library folder

Use this interface to create a content library folder in the location specified by the folderPath parameter in the request body.

Service URL:

/rest/api/v1.3/clFolders

Request Method:

POST

Request Header:

Authorization=<AUTH_TOKEN>

Content-Type=application/json

Request Body:

{
  "folderPath": "<folderPath>"
}

Sample Response in case of 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 in case of failure:

{
   "type": "",
   "title": "Folder already exists",
   "errorCode": "FOLDER_ALREADY_EXISTS",
   "detail": "/contentlibrary/abn/f1/f2/f3",
   "errorDetails": []
}