Add content-type to curl (#531)
This commit is contained in:
parent
36f0192053
commit
258d4172d8
6 changed files with 42 additions and 20 deletions
|
@ -27,6 +27,7 @@ Using the [REST API](/developers/rest_api/#post-apiservicesltdomainltservice) to
|
|||
|
||||
```bash
|
||||
$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"payload": "Test message from HA", "topic": "home/notification"}' \
|
||||
http://IP_ADDRESS:8123/api/services/mqtt/publish
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue