Also see
status_types => To retrieve a list of valid status_type_id.
Supported Formats
json, xml
Errors
Code |
Description |
401 |
Unauthorized - ensure token is being passed with each service call. |
401 |
Access Denied -- Not owner of building and/or the building has not been shared with this user. |
404 |
Unsupported operation |
500 |
Unspecified error on server. |
Examples
json:
{"building":{"id":2,"name":"Test Building","last_accessed":null,"year_of_construction":2013,"address":"1234 Somewhere Ave.","city":"Richland","state":"WA","zip_code":"99352","created_at":"2015-01-26T22:57:12Z","updated_at":"2015-01-26T22:57:12Z","user_id":13,"total_floor_area":1000.0,"notes":"Some notes about my building.","status_type_id":1"}}
xml:
<building>
<id type="integer">2</id>
<name>Test Building</name>
<last-accessed nil="true"/>
<year-of-construction type="integer">2013</year-of-construction>
<address>1234 Somewhere Ave.</address>
<city>Richland</city>
<state>WA</state>
<zip-code>99352</zip-code>
<created-at type="datetime">2015-01-26T22:59:17Z</created-at>
<updated-at type="datetime">2015-01-26T22:59:17Z</updated-at>
<user-id type="integer">13</user-id>
<total-floor-area type="float">1000.0</total-floor-area>
<notes>Some notes about my building.</notes>
<status-type-id nil="true"/>
<status-type-id type="integer">1</status-type-id>
</building>