---
updatedAt: 2026-06-19T08:17:57.000Z
agentTools:
  projectIndex: https://developers.onbuildingminds.com/llms.txt
---

# Submit Rental Unit data

Validates and queues Rental Unit records for asynchronous ingestion. Send a JSON array of objects; a 200 response means the records were accepted and validated. Ingestion into the platform happens asynchronously — poll GET /batch/{id}/inbound until each record reaches Completed or Published. You do not need to send parent entities before children; referenced parents are resolved automatically.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/rental-unit": {
      "post": {
        "operationId": "RentalUnitController_sendRentalUnitData",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/RentalUnit"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Data validation successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InboundResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Some or all records have failed during the validation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InboundResponseDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Submit Rental Unit data",
        "tags": [
          "Physical structure"
        ],
        "description": "Validates and queues Rental Unit records for asynchronous ingestion. Send a JSON array of objects; a 200 response means the records were accepted and validated. Ingestion into the platform happens asynchronously — poll GET /batch/{id}/inbound until each record reaches Completed or Published. You do not need to send parent entities before children; referenced parents are resolved automatically."
      }
    }
  },
  "info": {
    "title": "BuildingMinds Digital Twin API",
    "description": "Onboard your portfolio's Digital Twin — buildings, spaces, meters, consumption and more — into the BuildingMinds platform from your own systems. Records are submitted as JSON over a secure REST interface and ingested asynchronously: a 200 means each record was accepted and validated, then processing continues per record (poll the batch status until each record reaches Completed or Published).",
    "version": "1.0.0",
    "contact": {},
    "license": {
      "name": "BuildingMinds",
      "url": "https://buildingminds.com"
    }
  },
  "tags": [
    {
      "name": "Physical structure",
      "description": "The physical asset hierarchy — sites, buildings, floors, spaces, rental units, land and addresses."
    }
  ],
  "servers": [
    {
      "url": "https://api.onbuildingminds.com/api/digitaltwinintegration"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "type": "http"
      }
    },
    "schemas": {
      "Data": {
        "type": "object",
        "properties": {
          "batchId": {
            "type": "string"
          },
          "batchType": {
            "type": "string"
          },
          "totalMessagesCount": {
            "type": "integer"
          },
          "failedMessagesCount": {
            "type": "integer"
          },
          "pendingMessagesCount": {
            "type": "integer"
          },
          "successMessagesCount": {
            "type": "integer"
          },
          "failedMessages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InboundMessage"
            },
            "description": "Records that failed validation, each with its error."
          }
        }
      },
      "InboundResponseDto": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "the status of the request"
          },
          "data": {
            "description": "the data of the request",
            "allOf": [
              {
                "$ref": "#/components/schemas/Data"
              }
            ]
          }
        },
        "required": [
          "message",
          "data"
        ]
      },
      "RentalUnit": {
        "type": "object",
        "properties": {
          "addressIds": {
            "description": "Array of address IDs",
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "maxItems": 50
          },
          "buildingIds": {
            "description": "Array of Building IDs",
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "maxItems": 50
          },
          "energyRatingIds": {
            "description": "Array of energyRating IDs",
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "maxItems": 50
          },
          "eventType": {
            "enum": [
              "RentalUnitAdded",
              "RentalUnitUpdated",
              "RentalUnitDeleted"
            ],
            "type": "string",
            "description": "Type of the event as specific domain event RentalUnitUpdated"
          },
          "extensionData": {
            "type": "object",
            "description": "Extension data for storing any custom data"
          },
          "floorIds": {
            "description": "Array of Floor IDs",
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "maxItems": 50
          },
          "landIds": {
            "description": "Array of Land IDs",
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "maxItems": 50
          },
          "name": {
            "type": "string",
            "description": "Name of rental unit",
            "minLength": 1,
            "maxLength": 200
          },
          "rentalUnitCode": {
            "type": "string",
            "description": "User specific RentalUnit Code",
            "minLength": 1,
            "maxLength": 70
          },
          "rentalUnitId": {
            "type": "string",
            "description": "Unique identifier either coming from previous system otherwise it needs to be defined",
            "minLength": 1,
            "maxLength": 50
          },
          "rentedOut": {
            "type": "boolean",
            "description": "Is the RentalUnit rented out (Y/N)"
          },
          "siteIds": {
            "description": "Array of Site IDs",
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "maxItems": 50
          },
          "spaceIds": {
            "description": "Array of space IDs",
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "maxItems": 50
          },
          "usageType": {
            "enum": [
              "Education",
              "Education, Library",
              "Education, Other",
              "Education, School",
              "Education, University",
              "Health Care",
              "Health Care, Health Care Center",
              "Health Care, Other",
              "Health Care, Senior Homes",
              "Hotel",
              "Industrial",
              "Industrial, Distribution Warehouse",
              "Industrial, Industrial Park",
              "Industrial, Manufacturing",
              "Industrial, Other",
              "Lodging, Leisure & Recreation",
              "Lodging, Leisure & Recreation, Fitness Center",
              "Lodging, Leisure & Recreation, Indoor Arena",
              "Lodging, Leisure & Recreation, Museum/Gallery",
              "Lodging, Leisure & Recreation, Other",
              "Lodging, Leisure & Recreation, Performing Arts",
              "Lodging, Leisure & Recreation, Swimming Center",
              "Mixed Use",
              "Mixed Use, Office/Industrial",
              "Mixed Use, Office/Residential",
              "Mixed Use, Office/Retail",
              "Mixed Use, Other",
              "Office",
              "Office, Business Park",
              "Office, Corporate",
              "Office, High-Rise Office",
              "Office, Low-Rise Office",
              "Office, Medical Office",
              "Office, Mid-Rise Office",
              "Office, Other",
              "Other",
              "Other, Parking (Indoors)",
              "Other, Self-Storage",
              "Residential",
              "Residential, Family Homes",
              "Residential, High-Rise Multi-Family",
              "Residential, Low-Rise Multi-Family",
              "Residential, Mid-Rise Multi-Family",
              "Residential, Multi-Family",
              "Residential, Other",
              "Residential, Retirement Living",
              "Residential, Student Housing",
              "Retail",
              "Retail, High Street",
              "Retail, Lifestyle Center",
              "Retail, Other",
              "Retail, Restaurants/Bars",
              "Retail, Retail Centers",
              "Retail, Shopping Center",
              "Retail, Strip Mall",
              "Retail, Warehouse",
              "Technology/Science",
              "Technology/Science, Data Center",
              "Technology/Science, Laboratory/Life sciences",
              "Technology/Science, Other",
              "Industrial, Refrigerated Warehouse",
              "Industrial, Non-refrigerated Warehouse",
              "Health Care, Medical Office"
            ],
            "type": "string",
            "description": "Usage type of the rental unit"
          },
          "vacancy": {
            "type": "boolean",
            "description": "Is the rental unit vacant (Y/N)"
          },
          "validFrom": {
            "type": "string",
            "description": "Valid from in yyyy-mm-ddThh:mm:ssZ form (conform to ISO 8061)",
            "minLength": 20
          },
          "validUntil": {
            "type": "string",
            "description": "Valid until in yyyy-mm-ddThh:mm:ssZ form (conform to ISO 8061)",
            "minLength": 20
          }
        },
        "required": [
          "name",
          "rentalUnitId",
          "validFrom",
          "validUntil"
        ]
      },
      "InboundMessage": {
        "type": "object",
        "properties": {
          "inboundId": {
            "type": "string",
            "description": "Unique ID for this record within the batch."
          },
          "batchId": {
            "type": "string",
            "description": "ID of the batch this record belongs to."
          },
          "objectId": {
            "type": "string",
            "description": "The external ID you provided for this record (used to match updates)."
          },
          "type": {
            "type": "string",
            "description": "Entity type of the record."
          },
          "status": {
            "type": "string",
            "enum": [
              "New",
              "InProgress",
              "ValidationSuccessful",
              "Retrying",
              "Completed",
              "Published",
              "Failed",
              "FailedValidation",
              "TransformationFailed",
              "FailedGeoCoding",
              "GeoCodingSuccessful",
              "Resubmitting"
            ],
            "description": "Processing status. 'Completed' or 'Published' = fully onboarded; 'FailedValidation'/'Failed' indicate errors; 'Retrying' is transient."
          },
          "error": {
            "type": "string",
            "description": "Validation or processing error message, if any (free text)."
          },
          "bmId": {
            "type": "string",
            "description": "The BuildingMinds platform ID assigned once the record is onboarded."
          },
          "numOfRetries": {
            "type": "integer",
            "description": "How many times processing has been retried."
          },
          "source": {
            "type": "string"
          },
          "payload": {
            "type": "object",
            "description": "The original record you submitted."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    }
  }
}
```