フォルダの名前変更・移動

PUT/chat-rooms/:roomId/folders/:folderId

フォルダ名の変更と、別フォルダへの移動を行います。自分自身や自分の子孫の下へは移動できません。移動によって深さが 10 段を超える場合も拒否されます。

認証要ログイン

パスパラメータ

roomIdstring必須

チャットルーム ID。

folderIdstring必須

フォルダ ID。

リクエストボディ

namestring

新しいフォルダ名。

parentIdstring

移動先の親フォルダ。null でルート直下。

リクエスト
curl https://api.4s.link/chat-rooms/ROOM_ID/folders/FOLDER_ID \
-X PUT \
-H "Authorization: Bearer 4s_at_..." \
-H "Content-Type: application/json" \
-d '{
"parentId": "fd0a1b2c-..."
}'
レスポンス例
{
"type": "folder",
"id": "fd1a2b3c-...",
"name": "議事録",
"parentId": "fd0a1b2c-..."
}