From 7a4f5418514f91765f1f67e8c711e12e9f600324 Mon Sep 17 00:00:00 2001 From: Tarmo <106139715+tarmor1@users.noreply.github.com> Date: Thu, 29 Dec 2022 00:42:49 +0200 Subject: [PATCH] Update rest.md, fix inconsistent example for API CURL (#1595) --- docs/api/rest.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/rest.md b/docs/api/rest.md index 312482cc..85ee77a6 100644 --- a/docs/api/rest.md +++ b/docs/api/rest.md @@ -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 ```