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

Supported Formats

json, xml

GET /api/v1/block_air_handlers/:id
Retrieve the block_air_handler 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

{"air_handler_id":1,"block_id":2,"created_at":"2013-09-04T20:55:00Z","id":2,"updated_at":"2013-09-04T20:55:00Z"}
<block-air-handler>
<air-handler-id type="integer">2</air-handler-id>
<block-id type="integer">3</block-id>
<created-at type="datetime">2013-06-28T17:08:49Z</created-at>
<id type="integer">1</id>
<updated-at type="datetime">2013-06-28T17:08:49Z</updated-at>
</block-air-handler>

GET /api/v1/blocks/:block_id/block_air_handlers
Retrieve all block_air_handlers 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_air_handlers
Create a new block_air_handler. This will associate the block_air_handler with the block and return a BlockAirHandler object with unique ID assigned.

Also see Air Handlers 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

{"air_handler_id":1}
<block_air_handler>
  <air-handler-id type="integer">2</air-handler-id>
</block_air_handler>

Params

Param name Description
air_handler_id
required

ID of Air Handler.

Validations:

  • Must be a Integer


PUT /api/v1/block_air_handlers/:id
Update an existing block_air_handler. 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.

Params

Param name Description
air_handler_id
required

ID of Air Handler.

Validations:

  • Must be a Integer


DELETE /api/v1/block_air_handlers/:id
Delete the block_air_handler 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.