mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-09 18:36:51 +00:00
Add curl sample for template endpoint
This commit is contained in:
parent
97a836c5b7
commit
1666ba7535
@ -389,6 +389,14 @@ Returns the rendered template in plain text.
|
||||
Paulus is at work!
|
||||
```
|
||||
|
||||
Sample `curl` command:
|
||||
|
||||
```bash
|
||||
$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
|
||||
-d '{"template": "It is {{ now }}!"}' \
|
||||
http://localhost:8123/api/template
|
||||
```
|
||||
|
||||
#### {% linkable_title POST /api/event_forwarding %}
|
||||
Setup event forwarding to another Home Assistant instance.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user