Rename or move a folder

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

Rename a folder and/or move it. A folder cannot be moved into itself or one of its descendants, and a move that would exceed 10 levels is rejected.

AuthLogin required

Path parameters

roomIdstringrequired

Chat room ID.

folderIdstringrequired

Folder ID.

Request body

namestring

New folder name.

parentIdstring

New parent folder; null for the root.

Request
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-..."
}'
Example response
{
"type": "folder",
"id": "fd1a2b3c-...",
"name": "議事録",
"parentId": "fd0a1b2c-..."
}