Edit the ENERGY STAR linking information for this place and its meters. Set PmPropertyId/PmMeterId to null to unlink a property/meter. Set PmMeterId to -1 to auto-create a new meter.
Request Headers
| Header | Value | Required | Description |
|---|---|---|---|
| ECI-ApiKey | string | Yes | Your API key. See Authentication. |
| Content-Type | application/json | Yes | All requests must specify JSON content type, including the request body. |
Path Parameters
| Name | Description | Type | Required |
|---|---|---|---|
| placeId | The place identifier | integer (int32) | Required |
Request Body
EnergyStarPlaceLinkRequest
| Property | Description | Type | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| commodities | List of commodity links for this place
If PmPropertyId is null to unlink the place then Commodities should be null. All commodities under the place will be unlinked automatically. Required (defined) Only one of Meters, Commodities can be set |
EnergyStarCommodityLinkRequest[] | |||||||||
|
EnergyStarCommodityLinkRequest properties
|
|||||||||||
| meters | List of meter links for this place
If PmPropertyId is null to unlink the place then Meters should be null. All meters under the place will be unlinked automatically. Required (defined) Only one of Meters, Commodities can be set |
EnergyStarMeterLinkRequest[] | |||||||||
|
EnergyStarMeterLinkRequest properties
|
|||||||||||
| pmPropertyId | The Portfolio Manager property identifier. Set to null to unlink place. Required (defined) | integer (int64) | |||||||||
Example Request Body
{ "commodities": [
{ "commodityId": 1, "pmMeterId": 1
}
], "meters": [
{ "meterId": 1, "pmMeterId": 1
}
], "pmPropertyId": 1
}
Responses
200
OK
The request succeeded and the response body contains the requested data.
Response Body Parameters
EnergyStarPlaceLinkResponse
| Property | Description | Type | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| commodities | List of commodities for this place | EnergyStarCommodityLinkChild[] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
EnergyStarCommodityLinkChild properties
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| meters | List of meters for this place | EnergyStarMeterLinkChild[] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
EnergyStarMeterLinkChild properties
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| place | PlaceChild | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
PlaceChild properties
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pmPropertyId | una co The Portfolio Manager property identifier | integer (int64) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| submitMode | The submit mode. Could be “Meter” or “Commodity” | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example Response
{ "commodities": [
{ "commodity": { "commodityCode": "string", "commodityIcon": {}, "commodityId": 1, "commodityInfo": "string"
}, "energyStarCompatible": false, "pmMeterId": 1
}
], "meters": [
{ "costPerDay": 1.0, "costUnit": { "unitCode": "string", "unitId": 1, "unitInfo": "string"
}, "energyStarCompatible": false, "meter": { "active": false, "commodity": {}, "isCalculatedMeter": false, "isEsaCalculatedMeter": false, "isSplitChildMeter": false, "isSplitParentMeter": false, "meterCode": "string", "meterId": 1, "meterInfo": "string", "meterType": {}, "serialNumber": "string"
}, "pmMeterId": 1, "usePerDay": 1.0, "useUnit": { "unitCode": "string", "unitId": 1, "unitInfo": "string"
}
}
], "place": { "isDataRolledUp": false, "placeCode": "string", "placeId": 1, "placeInfo": "string", "placeType": { "icon": {}, "isSystemPlaceType": false, "placeEntityType": {}, "placeTypeCode": "string", "placeTypeId": 1, "placeTypeInfo": "string", "structure": false
}
}, "pmPropertyId": 1, "submitMode": "string"
}