Rooms

You can use Butlr's GraphQL API to create, update, and retrieve information about rooms.

A room is typically enclosed by walls that serve a specific purpose, such as an office, conference room, or bedroom. A floor can have one or many enclosed rooms.

This page provides guidance on how to retrieve, create, and update room information within a floor, enabling precise management of room-specific data.


Get all rooms

query allRooms {
  rooms {
    data {
      id
      floor {
        id
        name
        ...FloorFragment
      }
      metadata {
        ...MetaDataFragment
      }
      name
      area {
        ...AreaFragment
      }
      coordinates
      capacity {
        max
        mid
        ...CapacityFragment
      }
      rotation
      tags {
        id
        name
        ...TagFragment
      }
      sensors {
        id
        name
        ...SensorFragment
      }
      note
      room_id
      client_id
      floor_id
    }
  }
}

Code Examples


Update room(s)

Code Examples

Last updated