Skip to main content

Fields

devices : DevicesConnection

Get list of devices under a supply point.

Arguments
after : String
before : String
deviceIdentifiers : [String]

The ids of the devices to get. If not provided, all devices for the supply point will be returned.

first : Int
last : Int
externalIdentifier : String

The external identifier of the supply point.

id : ID! required

The ID of the supply point.

marketName : String! required

The market this supply point belongs to.

readings : Readings

Get readings from a readable device e.g., a supply point, device, or register.

The possible errors that can be raised are:

  • KT-CT-4721: Unsupported reading type.
  • KT-CT-4729: Unknown reading extra requested.
  • KT-CT-1113: Disabled GraphQL field requested.
Arguments
endAt : DateTime! required

The exclusive end of the time period as an isoformatted string.

extras : [String!]

Optional list of extra keys to include on each reading when the key is present on a raw row matched to that reading. On a list of supply points, a key is rejected only when no supply point on the page can return it; the others omit it. Requesting extras may cause aggregation delays with large aggregation queries.

readingType : ReadingTypes! required

Get readings of only this type.

startAt : DateTime! required

The inclusive start of the time period as an isoformatted string.

timeGranularity : TimeGranularities

Time buckets to group readings into.

timezone : String default: Europe/Madrid

The timezone in which to return readings.

units : [Units]

Optional filter to return readings only for specific list of units or unit (e.g., KILOWATT_HOURS, METERS_CUBED, LITER, etc.).

The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.

Example

{ "devices": DevicesConnection, "externalIdentifier": "47528924", "id": "74383954", "marketName": "law-hair-score-herself-threat", "property": PropertyType, "readings": Readings }