From 51bb07895b28e580b61db086a56c384d818fe1d7 Mon Sep 17 00:00:00 2001 From: Artem Zinnatullin Date: Sat, 15 Jun 2024 12:29:58 +0300 Subject: [PATCH] Add doc about deleting binary sensor via HTTP API (#33281) --- source/_integrations/http.markdown | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/_integrations/http.markdown b/source/_integrations/http.markdown index 954d3194552..485a8872393 100644 --- a/source/_integrations/http.markdown +++ b/source/_integrations/http.markdown @@ -215,6 +215,13 @@ $ curl -X GET -H "Authorization: Bearer LONG_LIVED_ACCESS_TOKEN" \ } ``` +To delete the sensor, send DELETE request with curl + +```bash +$ curl -X DELETE -H "Authorization: Bearer LONG_LIVED_ACCESS_TOKEN" \ + http://localhost:8123/api/states/binary_sensor.radio +``` + ### Examples In this section you'll find some real-life examples of how to use this sensor, besides `curl`, which was shown earlier.