POST
/
v1
/
devices
/
hvac
/
thermostat_behavior
/
webhook
/
set
{
  "id": "<string>",
  "createdAt": "<any>",
  "updatedAt": "<any>",
  "apiOwnerOrgId": "<string>",
  "webhookUrl": "<string>",
  "securityKey": "<string>",
  "eventType": "UNKNOWN",
  "lastSentAt": "<any>"
}

Headers

x-ws-api-key
string

WattShift API Key

Body

application/json
webhookUrl
string
required
securityKey
string
required

This security key will be sent back in the webhook under x-ws-security-key header.

Response

200 - application/json
id
string
required
createdAt
any
required
updatedAt
any
required
apiOwnerOrgId
string
required
webhookUrl
string
required
eventType
enum<string>
required
Available options:
UNKNOWN,
SET_POINT_SCHEDULE,
THERMOSTAT_QUERY
securityKey
string | null
lastSentAt
any | null