Rooms API
Define the interior layout of rental units — bedrooms, living rooms, kitchens, bathrooms. Room details appear on the lease document and are required for habitable surface area calculations under French law.
Quick Example
Code
Common Workflows
Define a T2 apartment layout
POST rooms— Sejour (18.5 m2)POST rooms— Chambre (12.0 m2)POST rooms— Cuisine (8.0 m2)POST rooms— Salle de bain (4.5 m2)
Tip: Get room types with
GET /api/types/roomsto find thetype_room_idfor each room function.
Overview
Rooms are the most granular level in the property hierarchy (Places > Estates > Rooms) and provide:
- Space Management: Detailed room-by-room property layouts
- Room Types: Categorization by function via
type_room_id(references/api/types/rooms) - Surface Tracking: Carrez and habitable surface areas for each room
- Equipment Integration: Room-level equipment and fixtures (via the Equipment API)
Authentication
All endpoints require authentication with PropertiesRead, PropertiesWrite, or PropertiesDelete permissions.
Base URL
Room endpoints are nested: /api/places/{place_id}/estates/{estate_id}/rooms
Core Operations
List Rooms
GET /api/places/{place_id}/estates/{estate_id}/rooms
Response:
Code
Create Room
POST /api/places/{place_id}/estates/{estate_id}/rooms
Request:
Code
Get Room
GET /api/places/{place_id}/estates/{estate_id}/rooms/{room_id}
Update Room
PUT /api/places/{place_id}/estates/{estate_id}/rooms/{room_id}
Delete Room
DELETE /api/places/{place_id}/estates/{estate_id}/rooms/{room_id}
Room Types
Room types are managed via the Types API (GET /api/types/rooms). Each room references a type_room_id which determines its function (bedroom, kitchen, bathroom, etc.).
Room Fields
| Field | Type | Description |
|---|---|---|
id | uuid | Room identifier |
estate_id | uuid | Parent estate |
type_room_id | uuid | Room type reference |
designation | string | Room label/name |
carrez_surface | number | Carrez surface area (m2) |
habitable_surface | number | Habitable surface area (m2) |
created_at | datetime | Creation timestamp |
updated_at | datetime | Last update timestamp |
Error Responses
400 Bad Request
Code
404 Not Found
Code
Common Use Cases
- Property Layout: Create detailed floor plans with room-by-room breakdown
- Surface Calculations: Track Carrez and habitable surfaces for each room
- Equipment Assignment: Associate equipment with specific rooms
Integration Notes
- Equipment: Rooms can contain equipment and fixtures (via
/rooms/{room_id}/equipment) - Surface Calculations: Room surfaces contribute to estate total area
- Property Hierarchy: Rooms must belong to valid estates within places