Skip to main content

Create a folder

Create a folder.

Parameters

name
string
required
Name for the folder
visibility
enum
required
Visibility of the folder. One of private, internal, shared.
folder
string
Unique identifier for the folder in which the folder will be created.

Returns

Returns the created folder object. Throws an error if some parameters are not valid.

post
/api/folders
curl -X POST https://{workspace}.kitchen.co/api/folders \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-Requested-With: XMLHttpRequest' \
-H 'Authorization: Bearer {API_KEY}'
Response
{
"archived_at": null,
"created_at": "2024-03-12T14:18:37+00:00",
"id": "fo_19b9108c92d98f81224ece44",
"name": "New Folder",
"updated_at": "2024-03-12T14:18:37+00:00",
"visibility": "shared"
}