POST
/
v1.0.0
/
link
/
users
/
{userId}
/
vendor-accounts
/
{vendorAccountId}
/
pv-inverters
curl --request POST \
  --url https://api.energy-hub.io/v1.0.0/link/users/{userId}/vendor-accounts/{vendorAccountId}/pv-inverters \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "externalPvInverters": [
    "8413731391660801"
  ]
}'
[
  {
    "isLinked": true,
    "vendor": "FRONIUS",
    "name": "My PV inverter",
    "externalId": "8413731391660801",
    "siteName": "My Home",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
]

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 PV inverters IDs request that should be added to the Energy Hub.

externalPvInverters
string[]
required

List of external IDs of PV inverters to be linked to the Energy Hub.

Response

201
application/json
Created
isLinked
boolean
required

Indicates if the PV inverter is linked to the Energy Hub.

vendor
enum<string>
required

The vendor of the PV inverter.

Available options:
FRONIUS,
TESLA,
HUAWEI,
SMA
name
string
required

The display name of the PV inverter.

externalId
string
required

ID of the PV inverter in external vendor system.

id
string
required

The ID of the PV inverter.

siteName
string

The site name of the home energy device.