mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-08 09:56:30 +00:00
Added intent handle api endpoint (#1210)
This commit is contained in:
parent
4ba18b3073
commit
573610c70d
@ -645,3 +645,18 @@ If the check fails, the errors attribute in the object will list what caused the
|
|||||||
```
|
```
|
||||||
|
|
||||||
</ApiEndpoint>
|
</ApiEndpoint>
|
||||||
|
|
||||||
|
<ApiEndpoint path="/api/intent/handling" method="post">
|
||||||
|
|
||||||
|
Handle an intent.
|
||||||
|
|
||||||
|
Sample `curl` command:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
curl -X POST -H "Authorization: Bearer ${TOKEN}" \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-d '{ "name": "SetTimer", "data": { "seconds": "30" } }' \
|
||||||
|
http://localhost:8123/api/intent/handle
|
||||||
|
```
|
||||||
|
|
||||||
|
</ApiEndpoint>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user