Webhook Creation Error 203 - Smart Home & API - Rachio Community
Webhook Creation Error 203
post by rioncm on Jul 15, 2019
I’m receiving an error when I try to setup a webhook for one of my devices.
{"code":"203","error":"Error creating webhookwebhooks required"}
here is the API call I am making via PAW rest client.
POST /1/public/notification/webhook HTTP/1.1
Authorization: Bearer my-bearer-code-000-00000000000
Content-Type: application/json; charset=utf-8
Host: api.rach.io
Connection: close
User-Agent: Paw/3.1.8 (Macintosh; OS X/10.14.5) GCDHTTPRequest
Content-Length: 181
{ "device": {"id":"my-rach-io-device-000000000000"}, "externalId":"vnWestTest", "url":" http://mqtt.myurl.com/rachio/vnwest", "eventTypes": [ {"id":"1"}, {"id":"2"}, {"id":"4"} ] }
Any insights into what I am doing wrong?
post by franz on Jul 16, 2019
Those types are not valid. This will give you the valid types.
| ID | Type |
|---|---|
| 5 | DEVICE_STATUS |
| 6 | RAIN_DELAY |
| 7 | WEATHER_INTELLIGENCE |
| 8 | WATER_BUDGET |
| 9 | SCHEDULE_STATUS |
| 10 | ZONE_STATUS |
| 11 | RAIN_SENSOR_DETECTION |
| 12 | ZONE_DELTA |
| 14 | DELTA |
post by jplasencia on Jun 9, 2023
@franz is this the correct object I need to send to the api to create a new webhook? The eventTypes listed on the example in the documentation’s curl example seem to require an array of objects with id and value (e.g [{"id": "1"}]
Create the webhook
webhook_data = { "device": { "id": device_id }, "externalId": "any_string_you_want", "url": webhook_url, "eventTypes": [ {"name":"ZONE_STATUS","type":"WEBHOOK"} ] }
post by franz on Jun 9, 2023
Can you PM me the curl command you are using?