Create Room folders
Makes Room folders. Send them all in one call as folders (1 to 100, in order, all or nothing); name alone makes one. Each goes at the top, inside an existing folder (parent_folder_id), or inside one made earlier in the call (give that one a ref, then parent_ref). Needs Can edit there, and follows who can see where it goes. Returns count and folders (room_folder_id, name, position) in order; a refused folder is details.folder_index.
AuthorizationBearer <token>A signed-in SMB user's access token. Workspace-scoped operations also require SMB-Workspace-Id.
room_id*string^rom_[0-7][0-9A-HJKMNP-TV-Z]{25}$SMB-Workspace-Id*stringWorkspace where this operation runs. Required for user tokens and Workspace API keys.
uuidIdempotency-Key*string8 <= length <= 200application/json- body
name*string^[^\u0000-\u001f\u007f]+$1 <= length <= 200parent_folder_id?|nullfolders?array<>1 <= items <= 100The existing resource or idempotent replay was returned.
application/json- response
room_folder_id*string^rfd_[0-7][0-9A-HJKMNP-TV-Z]{25}$room_id*string^rom_[0-7][0-9A-HJKMNP-TV-Z]{25}$parent_folder_id*|The folder it is in; null at the top (or when you can't open the folder above).
name*stringposition*integer-9007199254740991 <= value <= 9007199254740991access_mode*AccessModeinherit: everyone who can see the folder above (or the Room). restricted: only people added to it.
"inherit""restricted"item_count*ItemCountFolders and files inside it that you can see.
-9007199254740991 <= value <= 9007199254740991access_level*stringYour access on this folder.
"view""edit""full_access"created_at*stringupdated_at*stringrequest_id*stringcurl -X POST 'https://example.com/v1/rooms/string/folders' \ -H 'SMB-Workspace-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Idempotency-Key: stringst' \ -H 'Content-Type: application/json' \ -d '{}'{ "room_folder_id": "string", "room_id": "string", "parent_folder_id": "string", "name": "string", "position": -9007199254740991, "access_mode": "inherit", "item_count": -9007199254740991, "access_level": "view", "created_at": "string", "updated_at": "string", "request_id": "string"}