Create a folder

POST/chat-rooms/:roomId/folders

Create a folder. Folders can nest up to 10 levels. Two folders in the same parent cannot share a name (unlike files, folders are not numbered).

AuthLogin required

Path parameters

roomIdstringrequired

Chat room ID.

Request body

namestringrequired

Folder name (up to 100 characters).

parentIdstring

Parent folder; omit or null for the root.

Request
curl https://api.4s.link/chat-rooms/ROOM_ID/folders \
-X POST \
-H "Authorization: Bearer 4s_at_..." \
-H "Content-Type: application/json" \
-d '{
"name": "議事録",
"parentId": null
}'
Example response
{
"type": "folder",
"id": "fd1a2b3c-...",
"name": "議事録",
"parentId": null,
"createdAt": "2026-08-29T00:00:00.000Z"
}