Edit the default GHG scopes and factors that are applied to new meters. Only included CommodityIds will be updated. If a CommodityId is not included in the list the currently assigned value will remain. To remove a default for a particular CommodityId set its ScopeCategoryId and DefaultFactor to null.
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. |
Request Body
Array of:
GHGDefaultSettingRequestV202210
| Property | Description | Type | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| commodityId | The Commodity ID Required (defined) | integer (int32) | |||||||||
| defaultFactor | GHGDefaultFactor | ||||||||||
|
GHGDefaultFactor properties
|
|||||||||||
| scopeCategoryId | The Greenhouse Gas Scope category identifier Required when DefaultFactor is set | integer (int32) | |||||||||
Example Request Body
[
{ "commodityId": 1, "defaultFactor": { "factorId": 1, "factorType": "string"
}, "scopeCategoryId": 1
}
]
Responses
200
OK
The request succeeded and the response body contains the requested data.
Response Body Parameters
Array of:
GHGDefaultSettingResponseV202210
| Property | Description | Type | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| commodityCode | The Commodity Code | string | ||||||||||||||||||||||||||||||
| commodityIcon | Icon | |||||||||||||||||||||||||||||||
|
Icon properties
|
||||||||||||||||||||||||||||||||
| commodityId | The Commodity ID | integer (int32) | ||||||||||||||||||||||||||||||
| commodityInfo | The Commodity Info | string | ||||||||||||||||||||||||||||||
| defaultFactor | GHGFactorV202210 | |||||||||||||||||||||||||||||||
|
GHGFactorV202210 properties
|
||||||||||||||||||||||||||||||||
| defaultScopeCategory | GHGScopeCategoryV202210 | |||||||||||||||||||||||||||||||
|
GHGScopeCategoryV202210 properties
|
||||||||||||||||||||||||||||||||
| inUseByVendor | Flag to indicate if the commodity is assigned to any meters | boolean | ||||||||||||||||||||||||||||||
Example Response
[
{ "commodityCode": "string", "commodityIcon": { "code": "string", "color": "string"
}, "commodityId": 1, "commodityInfo": "string", "defaultFactor": { "factorCategory": {}, "factorDescription": "string", "factorId": 1, "factorInfo": "string", "factorType": "string"
}, "defaultScopeCategory": { "scope": {}, "scopeCategoryDescription": "string", "scopeCategoryId": 1, "scopeCategoryInfo": "string"
}, "inUseByVendor": false
}
]