Skip to content

Create Folder

Request

Creates a folder for the given name and returns folderId with success message.

Security
bearerAuth
Bodyapplication/jsonrequired

To create a folder, folderName is required and parentFolderId is optional.

namestring, [ 1 .. 255 ] charactersrequired

name

Example:"SCA"
parentFolderIdinteger, (int32), >= 1

parentFolderId

Example:1
curl -i -X POST \
  https://codeinsightapi.redocly.app/_mock/swagger/folders \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "SCA",
    "parentFolderId": 1
  }'

Responses

Created