Skip to main content
Assign a room to a user. If RoomNumber is null or omitted, the API randomly selects an available room from the requested type.

Request

Body

string
required
Roblox user ID or username to assign the room to.
string
required
The room type ID to assign from.
string | null
Specific room number to assign, or null for a random available room.

Response

Status Codes

  • 200: Room assigned successfully
  • 400: Invalid input, no available rooms, or gamepass check failed
  • 401: API key is required or invalid
  • 403: Hotel module is disabled or workspace access is denied