POST
/
v1.0.0
/
link
/
users
/
{userId}
/
vendor-accounts
/
{vendorAccountId}
/
hvacs
curl --request POST \
  --url https://api.energy-hub.io/v1.0.0/link/users/{userId}/vendor-accounts/{vendorAccountId}/hvacs \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "externalHvacs": [
    "8413731391660801"
  ]
}'
[
  {
    "isLinked": true,
    "vendor": "VIESSMANN",
    "name": "Viessmann Vitotronic 200",
    "externalId": "8413731391660801",
    "model": "Vitotronic 200",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "type": "AC"
  }
]

Authorizations

X-API-KEY
string
header
required

API key used for authorization and authentication.

Path Parameters

userId
string
required

User ID

vendorAccountId
string
required

Vendor account ID

Body

application/json

Object for HVAC that should be added to the Energy Hub.

externalHvacs
string[]
required

List of external IDs of HVACs to be linked to the Energy Hub.

Response

201
application/json
Created
isLinked
boolean
required

Indicates if the HVAC is linked to the Energy Hub.

vendor
enum<string>
required

The vendor of the HVAC.

Available options:
VIESSMANN,
DAIKIN,
VAILLANT
name
string
required

The name of the HVAC in human-readable format.

externalId
string
required

ID of the device in external vendor system.

model
string
required

The model of the HVAC.

type
enum<string>
required

The type of the HVAC.

Available options:
AC,
HEATPUMP,
DHW,
THERMOSTAT
id
string

The ID of the HVAC.