Create folder

post

/documentManagement/v1/{documentManagementSystemId}/folders

This operation creates a folder in the underlying DMS/CMS.

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Back to Top

Response

Supported Media Types

201 Response

Folder Created successfully
Body ()
Root Schema : FolderResponseBody
Type: object
Show Source

400 Response

Request validation failed
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source

401 Response

Authorization failure. The authorization header is invalid or missing
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source

403 Response

Operation is not permitted based on the supplied authorization.
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source

500 Response

Internal Server Error
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source
Back to Top

Examples

The following example shows how to create folder by submitting a post request on the REST resource using cURL.

cURL Command

curl --<username:password> --request POST '{FABRIC_HOST}/documentManagement/v1/{documentManagementSystemId}/folders' --header 'Authorization: Bearer <accessToken> --header 'Content-Type: application/json' -D @createfolder.JSON

Example of Request Body

The following shows an example of the request body in JSON format.

{
  "name": "Contracts Folder",
  "parentId": "DB1C5AF480FFE61C588027A8T000000000010000331",
  "description": "Contracts Folder"
}

Example of Response Body

The following shows an example of the response body in JSON format.

{
  "id": "DB1C5AF480FFE61C588027A8T0000000000100000001",
  "parentId": "DB1C5AF480FFE61C588027A8T000000000010000331",
  "name": "Contracts Folder",
  "description": "Contracts Folder",
  "createdBy": "User_Name",
  "createdWhen": "2014-02-21T21:32:37Z",
  "updatedBy": "User_Name",
  "updatedWhen": "2014-02-21T21:32:37Z",
  "href": "/documentManagement/v1/ocm-1/folders/DB1C5AF480FFE61C588027A8T0000000000100000001"
}


Back to Top