Add note for webhook_id inclusion (#1095)

This commit is contained in:
Zac West 2021-10-18 20:06:32 -07:00 committed by GitHub
parent 020a41fd18
commit f2a944bb33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,8 @@ Your server should accept a HTTP POST payload like this:
"registration_info": {
"app_id": "io.home-assistant.iOS",
"app_version": "1.0.0",
"os_version": "12.2"
"os_version": "12.2",
"webhook_id": "webhook_id_from_registration"
},
"data": {
"key": "value"
@ -40,6 +41,10 @@ Your server should accept a HTTP POST payload like this:
}
```
:::info
`webhook_id` will only be included from core-2021.11 or later.
:::
It should respond with a 201 status code assuming the notification was queued for delivery successfully.
### Errors