Meters
Required permissions: Meter.Organization.Read
Authorizations
Query parameters
organizationIdinteger · int32Optional
The organization identifier. Required if the caller has no global administrator permissions.
Responses
200
Lists of meters and registers
application/json
400
Input data was invalid
application/json
401
Not authorized
application/json
403
Not allowed
application/json
500
Internal server error
get
GET /api/meter HTTP/1.1
Host: api.switchmarket.se
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"meters": [
{
"id": 1,
"externalId": "text",
"name": "text",
"type": 0,
"longitude": "text",
"latitude": "text",
"organizationsIds": [
1
]
}
],
"registers": [
{
"id": 1,
"externalId": "text",
"name": "text",
"type": 0,
"measurementType": 0,
"measurementPrefix": 0,
"defaultResolution": 1,
"updateFrequency": 1,
"isVirtual": true,
"meterId": 1,
"virtualDefinition": {
"id": 1,
"calculationType": 1,
"baselineAlgorithmType": 1,
"timeZone": "text",
"constant": 1,
"sumPreviousValues": true,
"expression": "text",
"timeOfDay": "12:48:15",
"sourceRegisters": [
1
]
}
}
]
}
Last updated
Was this helpful?