Buildings
This is the API endpoint used to work specifically with building location types. A building wll contain floors and floor will contain spaces (rooms, desks, etc.)
List Buildings
Method: GET
/api/buildings/
Sample Result
{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": 5,
"location_id": "AB",
"source_app": "osis",
"name": "A Building",
"label": "",
"alt_label": "",
"description": "",
"timezone": null,
"country": null,
"region": null,
"site": null,
"state": null,
"city": "Chicago",
"building": "AB",
"address": null,
"lat": null,
"lng": null,
"created_at": "2021-02-23T14:01:14.382988Z",
"updated_at": "2022-04-18T20:39:20.377135Z"
},
{
"id": 10200,
"location_id": "APAC124",
"source_app": "fms",
"name": null,
"label": "",
"alt_label": null,
"description": "Seoul - 98 gil 8 Teheran-ro, Gangnam-gu",
"timezone": null,
"country": "South Korea",
"region": null,
"site": "AP-SK",
"state": "All States in South Korea",
"city": "Seoul",
"building": "APAC124",
"address": "98 gil 8 Teheran-ro, Gangnam-gu",
"lat": "37.57314500",
"lng": "126.97784900",
"created_at": "2019-05-07T06:12:30.342123Z",
"updated_at": "2020-03-19T02:12:02.933901Z"
}
]
}
Get Building Details
Method: GET
{{base_url}}/api/buildings/{{id}}/
Sample results
{
"id": 5,
"location_id": "AB",
"source_app": "osis",
"name": "A Building",
"label": "",
"alt_label": "",
"description": "",
"timezone": null,
"country": null,
"region": null,
"site": null,
"state": null,
"city": "Chicago",
"building": "AB",
"address": null,
"lat": null,
"lng": null,
"created_at": "2021-02-23T14:01:14.382988Z",
"updated_at": "2022-04-18T20:39:20.377135Z"
}
Add Building
Method: POST
/api/buildings/