Add entity delete endpoint (REST API) to docs (#2646)

This commit is contained in:
Christian Steinert 2025-04-22 12:22:58 +02:00 committed by GitHub
parent 9c863753db
commit 742f2e9efb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -823,3 +823,19 @@ curl \
``` ```
</ApiEndpoint> </ApiEndpoint>
<ApiEndpoint path="/api/states/<entity_id>" method="delete">
Deletes an entity with the specified `entity_id`.
Sample `curl` command:
```shell
curl \
-X DELETE \
-H "Authorization: Bearer TOKEN" \
-H "Content-Type: application/json" \
http://localhost:8123/api/states/sensor.kitchen_temperature
```
</ApiEndpoint>