Create room
Changed onThis endpoint creates a new room. id and defaultAccesses are required. When provided with a ?idempotent query argument, will not return a 409 when the room already exists, but instead return the existing room as-is. Corresponds to liveblocks.createRoom, or to liveblocks.getOrCreateRoom when ?idempotent is provided.
- defaultAccesses is the default room permission list, for example [], ["*:read"], ["*:write"], or a more granular permission list.
- metadata could be key/value as string or string[]. metadata supports maximum 50 entries. Key length has a limit of 40 characters maximum. Value length has a limit of 256 characters maximum. metadata is optional field.
- usersAccesses contains user-specific permission lists. It can contain 1000 ids maximum. Id length has a limit of 256 characters. usersAccesses is optional field.
- groupsAccesses contains group-specific permission lists and is optional.
Request
- Base URL: https://api.liveblocks.io/v2
- URL: https://api.liveblocks.io/v2/rooms
- Auth: none declared
Query parameters
When provided, will not return a 409 when the room already exists, but instead return the existing room as-is. Corresponds to liveblocks.getOrCreateRoom.
Request body
Example request
{
"id": "my-room-id",
"defaultAccesses": [
"*:write"
],
"metadata": {
"color": "blue"
},
"usersAccesses": {
"alice": [
"*:write"
]
},
"groupsAccesses": {
"product": [
"*:write"
]
}
}Response
Success. Returns the created room.
Example response
{
"type": "room",
"id": "my-room-id",
"lastConnectionAt": "2022-08-04T21:07:09.380Z",
"createdAt": "2022-07-13T14:32:50.697Z",
"organizationId": "org_123456789",
"metadata": {
"color": "blue",
"type": "whiteboard"
},
"defaultAccesses": [
"*:write"
],
"groupsAccesses": {
"marketing": [
"*:write"
]
},
"usersAccesses": {
"alice": [
"*:write"
]
}
}Changes
- warning
added the new
comments:private:noneenum value to the/response property for the response status - warning
added the new
comments:private:noneenum value to the//response property for the response status - warning
added the new
comments:private:noneenum value to the//response property for the response status - warning
added the new
comments:private:readenum value to the/response property for the response status - warning
added the new
comments:private:readenum value to the//response property for the response status - warning
added the new
comments:private:readenum value to the//response property for the response status - warning
added the new
comments:private:writeenum value to the/response property for the response status - warning
added the new
comments:private:writeenum value to the//response property for the response status - warning
added the new
comments:private:writeenum value to the//response property for the response status - warning
added the new
comments:public:noneenum value to the/response property for the response status - warning
added the new
comments:public:noneenum value to the//response property for the response status - warning
added the new
comments:public:noneenum value to the//response property for the response status - warning
added the new
comments:public:readenum value to the/response property for the response status - warning
added the new
comments:public:readenum value to the//response property for the response status - warning
added the new
comments:public:readenum value to the//response property for the response status - warning
added the new
comments:public:writeenum value to the/response property for the response status - warning
added the new
comments:public:writeenum value to the//response property for the response status - warning
added the new
comments:public:writeenum value to the//response property for the response status - info
added the new
comments:private:noneenum value to the request property/ - info
added the new
comments:private:noneenum value to the request property// - info
added the new
comments:private:noneenum value to the request property// - info
added the new
comments:private:readenum value to the request property/ - info
added the new
comments:private:readenum value to the request property// - info
added the new
comments:private:readenum value to the request property// - info
added the new
comments:private:writeenum value to the request property/ - info
added the new
comments:private:writeenum value to the request property// - info
added the new
comments:private:writeenum value to the request property// - info
added the new
comments:public:noneenum value to the request property/ - info
added the new
comments:public:noneenum value to the request property// - info
added the new
comments:public:noneenum value to the request property// - info
added the new
comments:public:readenum value to the request property/ - info
added the new
comments:public:readenum value to the request property// - info
added the new
comments:public:readenum value to the request property// - info
added the new
comments:public:writeenum value to the request property/ - info
added the new
comments:public:writeenum value to the request property// - info
added the new
comments:public:writeenum value to the request property//
- warning
- warning
added the new
*:readenum value to the/response property for the response status - warning
added the new
*:readenum value to the//response property for the response status - warning
added the new
*:readenum value to the//response property for the response status - warning
added the new
*:writeenum value to the/response property for the response status - warning
added the new
*:writeenum value to the//response property for the response status - warning
added the new
*:writeenum value to the//response property for the response status - warning
added the new
comments:noneenum value to the/response property for the response status - warning
added the new
comments:noneenum value to the//response property for the response status - warning
added the new
comments:noneenum value to the//response property for the response status - warning
added the new
comments:readenum value to the/response property for the response status - warning
added the new
comments:readenum value to the//response property for the response status - warning
added the new
comments:readenum value to the//response property for the response status - warning
added the new
feeds:noneenum value to the/response property for the response status - warning
added the new
feeds:noneenum value to the//response property for the response status - warning
added the new
feeds:noneenum value to the//response property for the response status - warning
added the new
feeds:readenum value to the/response property for the response status - warning
added the new
feeds:readenum value to the//response property for the response status - warning
added the new
feeds:readenum value to the//response property for the response status - warning
added the new
feeds:writeenum value to the/response property for the response status - warning
added the new
feeds:writeenum value to the//response property for the response status - warning
added the new
feeds:writeenum value to the//response property for the response status - warning
added the new
storage:noneenum value to the/response property for the response status - warning
added the new
storage:noneenum value to the//response property for the response status - warning
added the new
storage:noneenum value to the//response property for the response status - warning
added the new
storage:readenum value to the/response property for the response status - warning
added the new
storage:readenum value to the//response property for the response status - warning
added the new
storage:readenum value to the//response property for the response status - warning
added the new
storage:writeenum value to the/response property for the response status - warning
added the new
storage:writeenum value to the//response property for the response status - warning
added the new
storage:writeenum value to the//response property for the response status - info
added the new
*:readenum value to the request property/ - info
added the new
*:readenum value to the request property// - info
added the new
*:readenum value to the request property// - info
added the new
*:writeenum value to the request property/ - info
added the new
*:writeenum value to the request property// - info
added the new
*:writeenum value to the request property// - info
added the new
comments:noneenum value to the request property/ - info
added the new
comments:noneenum value to the request property// - info
added the new
comments:noneenum value to the request property// - info
added the new
comments:readenum value to the request property/ - info
added the new
comments:readenum value to the request property// - info
added the new
comments:readenum value to the request property// - info
added the new
feeds:noneenum value to the request property/ - info
added the new
feeds:noneenum value to the request property// - info
added the new
feeds:noneenum value to the request property// - info
added the new
feeds:readenum value to the request property/ - info
added the new
feeds:readenum value to the request property// - info
added the new
feeds:readenum value to the request property// - info
added the new
feeds:writeenum value to the request property/ - info
added the new
feeds:writeenum value to the request property// - info
added the new
feeds:writeenum value to the request property// - info
added the new
storage:noneenum value to the request property/ - info
added the new
storage:noneenum value to the request property// - info
added the new
storage:noneenum value to the request property// - info
added the new
storage:readenum value to the request property/ - info
added the new
storage:readenum value to the request property// - info
added the new
storage:readenum value to the request property// - info
added the new
storage:writeenum value to the request property/ - info
added the new
storage:writeenum value to the request property// - info
added the new
storage:writeenum value to the request property//
- warning