# Retrieve lot by building Id Return all lot for a given building id Endpoint: POST /api/tenant/{tenantId_path}/lot/getLotsByBuildingId Version: v1 ## Path parameters: - `tenantId_path` (string, required) ## Request fields (application/json-patch+json): - `buildingId` (string) - `datatable` (object) - `datatable.sort` (object,null) - `datatable.sort.sortBy` (integer) Enum: 1, 2, 3, 4, 5, 6, 7 - `datatable.sort.sortMode` (integer) Enum: 1, 2 - `datatable.pagination` (object) - `datatable.pagination.page` (integer) - `datatable.pagination.rowsPerPage` (integer) - `datatable.filters` (object,null) - `datatable.search` (object,null) - `datatable.search.value` (string) ## Response 200 fields (text/plain): - `datatable` (object) - `datatable.sort` (object,null) - `datatable.sort.sortBy` (integer) Enum: 1, 2, 3, 4, 5, 6, 7 - `datatable.sort.sortMode` (integer) Enum: 1, 2 - `datatable.pagination` (object) - `datatable.pagination.page` (integer) - `datatable.pagination.rowsPerPage` (integer) - `datatable.pagination.totalItems` (integer,null) - `datatable.filters` (object,null) - `datatable.filters.filterList` (array) - `datatable.filters.filterList.name` (integer) Enum: 1, 2, 3, 4, 5 - `datatable.filters.filterList.values` (array) - `datatable.search` (object,null) - `datatable.search.value` (string) - `list` (array) - `list.id` (string) - `list.state` (integer) Enum: 1, 5, 8, 9, 10, 15 - `list.number` (string) - `list.type` (integer) Enum: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 - `list.unitType` (integer) Enum: 1, 2 - `list.surface` (number,null) - `list.unitCount` (integer,null) - `list.buildingPartId` (string,null) - `list.buildingPartName` (string,null) - `list.floor` (string,null) - `list.currentLeaseId` (string,null) - `list.currentLeaseNumber` (string,null) - `list.currentLeaseLabel` (string,null) - `list.lastLeaseId` (string,null) - `list.lastLeaseNumber` (string,null) - `list.lastLeaseLabel` (string,null) - `list.currentRenterId` (string,null) - `list.currentRenterName` (string,null) - `list.lastRenterId` (string,null) - `list.lastRenterName` (string,null) - `facets` (array) - `facets.facetInfos` (array) - `facets.facetInfos.label` (string) - `facets.facetInfos.count` (integer,null) ## Response 400 fields (text/plain): - `error` (string)