Retrieve the aggregate usage for a device or a number of devices.
thingspace_oauth VZ-M2M-Token In: header
M2M Session Token (How to generate an M2M session token?)
In: header
application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
curl -X POST "https://example.com/v1/devices/usage/actions/list/aggregate" \ -H "Content-Type: application/json" \ -d '{ "deviceId": [ { "id": "32-digit EID", "kind": "eid" } ], "accountName": "0000123456-00001", "startTime": "2023-10-25T00:00:00.000Z", "endTime": "2023-10-30T00:00:00.000Z" }'{ "requestId": "d1f08526-5443-4054-9a29-4456490ea9f8"}{ "errorCode": 400, "errorMessage": "a brief description of the error"}The numeric name of the account, in the format "0000123456-00001". Leading zeros must be included.
^[A-Za-z0-9]{3,32}$3 <= length <= 32The start date of the time period queried as "$datetime"
^[A-Za-z0-9]{3,32}$3 <= length <= 32The end date of the time period being queried as "$datetime"
^[A-Za-z0-9]{3,32}$3 <= length <= 32