Skip to main content
POST
/
hierarchy
Add a folder
curl --request POST \
  --url https://api.closebot.com/hierarchy \
  --header 'Content-Type: application/json' \
  --header 'X-CB-KEY: <api-key>' \
  --data '
{
  "name": "<string>",
  "parentId": "<string>"
}
'
{
  "id": "<string>"
}

Authorizations

X-CB-KEY
string
header
required

CloseBot API Key Authorization

Body

name
string | null

The name of the folder

parentId
string | null

The parent ID of the folder

Response

Created

id
string | null

The ID of the folder