Create a folder
POST
/chat-rooms/:roomId/foldersCreate 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).
| Auth | Login required |
|---|
Path parameters
roomIdstringrequiredChat room ID.
Request body
namestringrequiredFolder name (up to 100 characters).
parentIdstringParent 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"}