Counts meters matching filter criteria for cost avoidance bulk operations
Use this endpoint to preview how many meters would be affected by a bulk baseline/savings
operation before executing it. Set onlyMetersInCAP to control whether to count only meters
already participating in cost avoidance. Requires Global Cost Avoidance Settings View permission.
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. |
Query Parameters
| Name | Description | Type | Required |
|---|---|---|---|
| onlyMetersInCAP | When true (default), counts only meters already participating in cost avoidance. When false, counts all matching meters | boolean | Optional |
Request Body
Array of:
FilterEdit
| Property | Description | Type |
|---|---|---|
| fieldId | Data field ID for the filter Required | integer (int32) |
| operator | Filter operator expressed as a string (e.g. “equals”) Required | string |
| value | Filter value | string |
Example Request Body
[
{ "fieldId": 1, "operator": "string", "value": "string"
}
]
Responses
200
OK
The request succeeded and the response body contains the requested data.
Response Body Parameters
GenericCount
| Property | Description | Type |
|---|---|---|
| count | Number of items | integer (int32) |
| description | A short description of the items counted | string |
Example Response
{ "count": 1, "description": "string"
}