Code | Description |
---|---|
401 | Unauthorized - The "token" parameter MUST be provided for each service call. |
422 | Unprocessable Entity - The form data contains errors. |
Param name | Description |
---|---|
token required |
The token for user authentication. Validations:
|
simple_building optional |
The form data for the new simple building. Validations:
|
simple_building[address] required |
Street Validations:
|
simple_building[city] required |
City Validations:
|
simple_building[name] required |
Building Name Validations:
|
simple_building[notes] optional |
Add notes about this building. Validations:
|
simple_building[number_of_floors] required |
Number of Above Grade Floors Validations:
|
simple_building[predominant_hvac_system_type_name] required |
Predominant HVAC System Type Validations:
|
simple_building[reported_floor_area] required |
Total Floor Area Validations:
|
simple_building[shape_name] required |
Building Shape Validations:
|
simple_building[state] required |
State Validations:
|
simple_building[use_type_name] required |
Predominant Use Type Validations:
|
simple_building[year_of_construction] required |
Year Completed Validations:
|
simple_building[zip_code] required |
Zip Code Validations:
|
OK
Param name | Description |
---|---|
id required |
The ID of the building. Validations:
|
name required |
The name of the building. Validations:
|
owner required |
The user that owns the building. Validations:
|
owner[id] required |
The ID of the user that owns the building. Validations:
|
owner[email] required |
The email address of the user that owns the building. Validations:
|
owner[first_name] required |
The first name of the user that owns the building. Validations:
|
owner[last_name] required |
The last name of the user that owns the building. Validations:
|
owner[organization] optional |
The organization to which the user that owns the building is assigned. Validations:
|
owner[organization][id] required |
The ID of the organization to which the user that owns the building is assigned. Validations:
|
owner[organization][name] required |
The name of the organization to which the user that owns the building is assigned. Validations:
|
owner[site_admin] required |
Set to “true” if the user that owns the building is a site administrator. Validations:
|
owner[type] required |
The type of the user. Always: “User” Validations:
|
status required |
The status of the building. Validations:
|
created_at required |
The timestamp for when the building was created. Validations:
|
updated_at required |
The timestamp for when the building was last modified. Validations:
|
html_url required |
The URL for the building in the Asset Score tool. Validations:
|
Unprocessable Entity
Param name | Description |
---|---|
address required |
Validations:
|
city required |
Validations:
|
name required |
Validations:
|
notes required |
Validations:
|
number_of_floors required |
Validations:
|
predominant_hvac_system_type_name required |
Validations:
|
reported_floor_area required |
Validations:
|
shape_name required |
Validations:
|
state required |
Validations:
|
use_type_name required |
Validations:
|
year_of_construction required |
Validations:
|
zip_code required |
Validations:
|