Skip to main content

createCompanyFolder

This method creates a new folder under an existing folder or company.

Parameters

Parameter

Type

Optional

Description

folderName

String

No

The name for the new folder.

parentId

String

Yes

The ID of the parent company or folder (if the case). The default value is the ID of the parent company.

Return value

This method returns a String: the ID of the newly-created folder.

Example

Request:

  {
       "params": {
           "parentId": "54a295d8b1a43d7c4a7b23c6",
           "folderName" : "Company folder 3"
       },
       "jsonrpc": "2.0",
       "method": "createCompanyFolder",
       "id": "f5911ea2-9f14-4046-96eb-5fa24cca98f0"
  }  

Response:

  {
      "id":"f5911ea2-9f14-4046-96eb-5fa24cca98f0",
      "jsonrpc":"2.0",
      "result": "54a298c5b1a43d0c4c7b23c7"
  }