フォルダを作成

POST/chat-rooms/:roomId/folders

フォルダを作成します。フォルダは多階層にできますが、深さは 10 段までです。同じ階層に同名のフォルダは作れません(ファイルと違い採番しません)。

認証要ログイン

パスパラメータ

roomIdstring必須

チャットルーム ID。

リクエストボディ

namestring必須

フォルダ名(100 文字まで)。

parentIdstring

親フォルダ。省略・null ならルート直下。

リクエスト
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
}'
レスポンス例
{
"type": "folder",
"id": "fd1a2b3c-...",
"name": "議事録",
"parentId": null,
"createdAt": "2026-08-29T00:00:00.000Z"
}