Services relating to block_zone_equipments of the Energy Asset Tool. This describes the relationship between a block and zone_equipment.

Supported Formats

json, xml

GET /api/v1/block_zone_equipments/:id
Retrieve the block_zone_equipment with the specific ID.

Supported Formats

json, xml

Errors

Code Description
401 Unauthorized - ensure token is being passed with each service call.
404 Unsupported operation
500 Unspecified error on server.

Examples

{"block_id":2,"created_at":"2013-09-04T21:24:10Z","id":2,"updated_at":"2013-09-04T21:24:10Z","zone_equipment_id":1}
<block-zone-equipment>
<block-id type="integer">74</block-id>
<created-at type="datetime">2013-07-09T19:40:39Z</created-at>
<id type="integer">14</id>
<updated-at type="datetime">2013-07-09T19:40:39Z</updated-at>
<zone-equipment-id type="integer">17</zone-equipment-id>
</block-zone-equipment>

GET /api/v1/blocks/:block_id/block_zone_equipments
Retrieve all block_zone_equipments belonging to the block.

Supported Formats

json, xml

Errors

Code Description
401 Unauthorized - ensure token is being passed with each service call.
404 Unsupported operation
500 Unspecified error on server.

POST /api/v1/blocks/:block_id/block_zone_equipments
Create a new block_zone_equipment. This will associate the block_zone_equipment with the block and return a BlockZoneEquipment object with unique ID assigned.

Also see Zone Equipment belonging to the building that can be associated with this block..

Supported Formats

json, xml

Errors

Code Description
401 Unauthorized - ensure token is being passed with each service call.
404 Unsupported operation
500 Unspecified error on server.

Examples

{"zone_equipment_id":1}
<block_zone_equipment>
  <zone-equipment-id type="integer">1</zone-equipment-id>
</block_zone_equipment>

PUT /api/v1/block_zone_equipments/:id
Update an existing block_zone_equipment. Nothing is returned.

Supported Formats

json, xml

Errors

Code Description
401 Unauthorized - ensure token is being passed with each service call.
404 Unsupported operation
500 Unspecified error on server.

DELETE /api/v1/block_zone_equipments/:id
Delete the block_zone_equipment and disassociate it from the block. Nothing is returned.

Supported Formats

json, xml

Errors

Code Description
401 Unauthorized - ensure token is being passed with each service call.
404 Unsupported operation
500 Unspecified error on server.