mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-12 20:06:28 +00:00
Add entity delete endpoint (REST API) to docs (#2646)
This commit is contained in:
parent
9c863753db
commit
742f2e9efb
@ -823,3 +823,19 @@ curl \
|
||||
```
|
||||
|
||||
</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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user