Services relating to status_types of the Energy Asset Tool

Supported Formats

json, xml

GET /api/v1/status_types/:id
Retrieve the status_type with the specific ID.

Also see Building.

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

{"id":1,"display_name":"Editing","created_at":"2022-05-16T15:13:30.333Z","updated_at":"2022-05-16T15:13:30.333Z"}
<?xml version="1.0" encoding="UTF-8"?>
<status-type>
  <id type="integer">1</id>
  <display-name>Editing</display-name>
  <created-at type="dateTime">2022-05-16T15:13:30Z</created-at>
  <updated-at type="dateTime">2022-05-16T15:13:30Z</updated-at>
</status-type>

GET /api/v1/status_types
Retrieve all status_types.

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

[{"id":1,"display_name":"Editing","created_at":"2022-05-16T15:13:30.333Z","updated_at":"2022-05-16T15:13:30.333Z"},{"id":2,"display_name":"Running","created_at":"2022-05-16T15:13:30.333Z","updated_at":"2022-05-16T15:13:30.333Z"},{"id":3,"display_name":"Rated","created_at":"2022-05-16T15:13:30.340Z","updated_at":"2022-05-16T15:13:30.340Z"},{"id":4,"display_name":"Submitted","created_at":"2022-05-16T15:13:30.340Z","updated_at":"2022-05-16T15:13:30.340Z"}]
<?xml version="1.0" encoding="UTF-8"?>
<status-types type="array">
  <status-type>
    <id type="integer">1</id>
    <display-name>Editing</display-name>
    <created-at type="dateTime">2022-05-16T15:13:30Z</created-at>
    <updated-at type="dateTime">2022-05-16T15:13:30Z</updated-at>
  </status-type>
  <status-type>
    <id type="integer">2</id>
    <display-name>Running</display-name>
    <created-at type="dateTime">2022-05-16T15:13:30Z</created-at>
    <updated-at type="dateTime">2022-05-16T15:13:30Z</updated-at>
  </status-type>
  <status-type>
    <id type="integer">3</id>
    <display-name>Rated</display-name>
    <created-at type="dateTime">2022-05-16T15:13:30Z</created-at>
    <updated-at type="dateTime">2022-05-16T15:13:30Z</updated-at>
  </status-type>
  <status-type>
    <id type="integer">4</id>
    <display-name>Submitted</display-name>
    <created-at type="dateTime">2022-05-16T15:13:30Z</created-at>
    <updated-at type="dateTime">2022-05-16T15:13:30Z</updated-at>
  </status-type>
</status-types>