mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-14 12:56:30 +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
|
```shell
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "x-ha-access:YOUR_PASSWORD" \
|
-H "Authorization: Bearer ABCDEFGH" \
|
||||||
-d '{"payload": "OFF", "topic": "home/fridge", "retain": "True"}' \
|
-d '{"payload": "OFF", "topic": "home/fridge", "retain": "True"}' \
|
||||||
http://localhost:8123/api/services/mqtt/publish
|
http://localhost:8123/api/services/mqtt/publish
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user