Dartmouth API Developer Portal

Floors

Required Scopes

Scope Description
"api:facilities:properties:read" This scope is required in order to view properties Authorization of this scope is granted by the Planning, Design & Construction office

Request

GET /api/facilities/floors/{id}
GET /api/facilities/floors/

Required Headers

Authorization: Bearer {jwt}

Sample Request

https://api.dartmouth.edu/api/facilities/floors/0007-02
https://api.dartmouth.edu/api/facilities/floors/

Sample Return

{
    "id": "0007-02",
    "name": "Second Floor",
    "property_id": "0007",
    "from_date": "2020-05-07T00:00:00Z",
    "to_date": null
}
[
    {
        "id": "0001--1",
        "name": "Sub Basement Level 1",
        "property_id": "0001",
        "from_date": "2020-05-07T00:00:00Z",
        "to_date": null
    },
    {
        "id": "0001--2",
        "name": "Sub Basement Level 2",
        "property_id": "0001",
        "from_date": "2020-05-07T00:00:00Z",
        "to_date": null
    },
    {
        "id": "0001-00",
        "name": "Basement",
        "property_id": "0001",
        "from_date": "2020-05-07T00:00:00Z",
        "to_date": null
    },
    {
        "id": "0001-01",
        "name": "First Floor",
        "property_id": "0001",
        "from_date": "2020-05-07T00:00:00Z",
        "to_date": null
    },
    {
        "id": "0007-02",
        "name": "Second Floor",
        "property_id": "0007",
        "from_date": "2020-05-07T00:00:00Z",
        "to_date": null
    }
]
Field Type Description
id string ID is "property_id"-"floor_id"
name string
property_id string ID of the property associated to this floor
from_date string
to_date string