Web Service Documentation / Categories / Building Services / Edit Building
Updated on December 10, 2018
This web service updates a building based on the information provided in the XML request. It returns the unique identifier to the updated building and a link to the corresponding web service to retrieve it.
23.0
PUT
/building/(buildingId)
Field Name | Value | Comments |
---|---|---|
Authorization | Basic credentials | |
Content-Type | application/xml |
Yes
Parameter Name | Description |
---|---|
buildingId | Id to the building |
Request/Response | Schema Name |
---|---|
Request | building.xsd |
Response | response.xsd |
The following example updates a building that has an id of 786.
PUT /building/786<?xml version="1.0" encoding="UTF-8"?> <building> <name>8041- Richmond Road - Score 58</name> <address address1="5300 Richmond Road" city="Bedford Heights" postalCode="44146" state="OH" country="US"/> <constructionStatus>Existing</constructionStatus> <primaryFunction>Refrigerated Warehouse</primaryFunction> <yearBuilt>1992</yearBuilt> <grossFloorArea units="Square Feet" temporary="false"> <value>856655</value> </grossFloorArea> <occupancyPercentage>70</occupancyPercentage> <isFederalProperty>true</isFederalProperty> <agency id="1"/> <federalOwner>US</federalOwner> <agencyDepartmentRegion>Region Test</agencyDepartmentRegion> <federalCampus>Campus Test</federalCampus> <notes><![CDATA[Permit license > 5 years old.]]></notes> </building>
The following example indicates that the building was updated successfully.
<?xml version="1.0" encoding="UTF-8"?>
<response status="Ok">
<id>786</id>
<links>
<link httpMethod="GET" link="/building/786" linkDescription="This is the GET url for this Property."/>
</links>
</response>