Skip to content

Update Data Source

POST
/v0/entities/{entity_id}/sites/{site_id}/data-sources/{data_source_id}

Update config for a given data source id

Authorizations

Parameters

Path Parameters

entity_id
required
string
site_id
required
string
data_source_id
required
string

Request Body required

One of: discriminator: data_source_type
object
name
Any of:
string
labels
Any of:
Array<object>
object
label_id
Any of:
string
display_name
Any of:
string
value
required
string
dashboard_template
Any of:
string
data_source_type
required
string
Allowed values: ecophi-device
connection_settings
Any of:
object
wifi_name
Any of:
string
wifi_password
Any of:
string
connection_order
Any of:
string
calculation_settings
Any of:
object
co2_per_kwh
required
number
trees_saved_per_kwh
required
number
grid_selling_price_per_kwh
required
number
grid_buying_price_per_kwh
required
number
currency
required
string
action_conditions
Any of:
object
key
additional properties
object
value
Any of:
string
ems
object
active
boolean
type
Any of:
Allowed values: cloud-forecasting local-fuel-saver local-feed-in-limit local-optimization
energy_market_id
Any of:
string
Allowed values: AL AT BE BA BG HR CY CZ DK EE FI FR GE DE GR HU IE IT XK LV LT LU MT MD ME NL MK NO PL PT RO RS SK SI ES SE CH TR UA UK
metadata
object
grid_import_power
Any of:
number
grid_export_power
Any of:
number
pv_controllability
Any of:
Allowed values: not-possible binary continuous
pv_peak_power
Any of:
number

Responses

200

Successful Response

object
data_source_id
required
string
data_source_type
required
string
Allowed values: ecophi-device
updated
required
Any of:
string

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string