, provider, base_url, aggregates=None)[source]

Create the reference aggregates in the API.

  • token (str) – Access token for the API
  • provider (str) – Provider name to filter all API observations on
  • base_url (str) – URL of the API to list objects and create aggregate at
  • aggregates (list or None) – List of dicts that describes each aggregate. Defaults to REF_AGGREGATES if None.

ValueError – If an observation does not exist in the API for an aggregate or multiple observations match the given name and site name.