Added intent handle api endpoint (#1210)

This commit is contained in:
Andrew Soback 2022-02-10 01:30:35 -06:00 committed by GitHub
parent 4ba18b3073
commit 573610c70d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -645,3 +645,18 @@ If the check fails, the errors attribute in the object will list what caused the
```
</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>