mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 21:36:52 +00:00
Update trigger.markdown (#14583)
-d "" as empty seems to not work as expected. Explicit POST solves it.
This commit is contained in:
parent
7c1a7646ab
commit
b0f8376250
@ -479,7 +479,7 @@ automation:
|
||||
You can run this automation by sending an HTTP POST request to `http://your-home-assistant:8123/api/webhook/some_hook_id`. Here is an example using the **curl** command line program, with an empty data payload:
|
||||
|
||||
```shell
|
||||
curl -d "" https://your-home-assistant:8123/api/webhook/some_hook_id
|
||||
curl -X POST https://your-home-assistant:8123/api/webhook/some_hook_id
|
||||
```
|
||||
|
||||
Webhook endpoints don't require authentication, other than knowing a valid webhook ID. You can send a data payload, either as encoded form data or JSON data. The payload is available in an automation template as either `trigger.json` or `trigger.data`. URL query parameters are available in the template as `trigger.query`. Remember to use an HTTPS URL if you've secured your Home Assistant installation with SSL/TLS.
|
||||
|
Loading…
x
Reference in New Issue
Block a user