mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-14 04:46:29 +00:00
Update rest.md, fix inconsistent example for API CURL (#1595)
This commit is contained in:
parent
d4d5d20f67
commit
7a4f541851
@ -654,7 +654,7 @@ Send an MQTT message:
|
||||
```shell
|
||||
curl -X POST \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "x-ha-access:YOUR_PASSWORD" \
|
||||
-H "Authorization: Bearer ABCDEFGH" \
|
||||
-d '{"payload": "OFF", "topic": "home/fridge", "retain": "True"}' \
|
||||
http://localhost:8123/api/services/mqtt/publish
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user