Skip to main content
PATCH
/
v1
/
devices
/
settings
curl --request PATCH \
  --url https://api.nox.energy/v1/devices/settings \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "user_id": "user456",
  "device_id": "device123",
  "room": {
    "temperature_lower_bound": 1.5,
    "temperature_upper_bound": 2,
    "preferred_temperature": 21,
    "schedule_enabled": true,
    "temperature_control_mode": "auto"
  },
  "dhw": {
    "temperature_lower_bound": 45,
    "temperature_upper_bound": 60
  },
  "optimization_settings": {
    "pv_self_consumption": false,
    "dynamic_tariff": false,
    "flex_trading": true
  },
  "location": {
    "country": "NL",
    "postal_code": "1234AB"
  }
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

x-api-key
string
header
required

API Key authentication. Enter your API key in the format: YOUR_API_KEY

Body

application/json
user_id
string
required

User ID to update settings for

device_id
string | null

Device ID to update settings for

room
RoomSettings · object

Room temperature control settings

dhw
DHWSettings · object

Domestic hot water settings

optimization_settings
OptimizationSettings · object

Optimization settings for flex trading, dynamic tariff and PV self-consumption

location
LocationSettings · object

Location-related settings

Response

No Content - Settings updated successfully