Skip to content

Commit 742f2e9

Browse files
authored
Add entity delete endpoint (REST API) to docs (#2646)
1 parent 9c86375 commit 742f2e9

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/api/rest.md

+16
Original file line numberDiff line numberDiff line change
@@ -823,3 +823,19 @@ curl \
823823
```
824824

825825
</ApiEndpoint>
826+
827+
<ApiEndpoint path="/api/states/<entity_id>" method="delete">
828+
829+
Deletes an entity with the specified `entity_id`.
830+
831+
Sample `curl` command:
832+
833+
```shell
834+
curl \
835+
-X DELETE \
836+
-H "Authorization: Bearer TOKEN" \
837+
-H "Content-Type: application/json" \
838+
http://localhost:8123/api/states/sensor.kitchen_temperature
839+
```
840+
841+
</ApiEndpoint>

0 commit comments

Comments
 (0)