⭐Get or Create Default Room
Gets the user's default room. If it doesn't exist, creates a new default room.
Below is a list of available parameters when creating a default room
Parameter
Type
Required
Default
Description
creator_email
string
Yes
n/a
Email address of the user who will own the room. Must be registered in the system
name
string
Yes
n/a
Room name
fallback_name
string
No
null
Alternative name to use if room name conflicts
Example request
curl -L -X POST 'https://<DOMAIN>/api/groups/xapi/room/default' \
-H 'Content-Type: application/json' \
--data-raw '{
"name": "Test Room",
"fallback_name": "Test Room Fallback",
"lang": "en-US",
"creator_email": "test@example.com",
"options": {
"allow_rating": true,
"preparation_time": 15,
"session_duration": 60,
"Chat": {
"OffMessageModule": false,
"OffGeneralMsging": false,
"OffGeneralMsgLimitForUser": false,
"OffSpecialMsging": false,
"OffSpecialMsgToAdmin": false,
"OffSpecialMsgToUser": false,
"OffNewMsgSound": false,
"OffClearForReplay": false,
"OnNewMsgSoundInAll": false,
"OnNewMsgNotifyInAll": false
},
"Duration": {
"AllowExtendTime": true,
"UseRemainingTime": false
},
"allow_users_stream_self_cam_mic": true,
"hide_user_streams": false,
"enable_attendance_check": true,
"enable_simultaneous_interpretation": false,
"enable_simultaneous_interpretation_for_users": false,
"start_active": false,
"return_url": "",
"allow_reactions": true
}
}'Example response
If the user's default room already exists, returns the existing room with
200 OKIf the user's default room does not exist, creates a new one and returns with
201 Created
A successful response returns the following body:
Last updated