POST /action
Sends an action to be resolved and dispatched to the appropriate commands.
Request
Body
| Field | Type | Description |
|---|---|---|
id | string | Action identifier, e.g. "power_on" |
role | string | (optional) Role to scope the lookup, e.g. "display", "media", "audio", "avr", "scene" |
dvc | object | (optional) Device to scope the lookup |
Responses
| Status | Body |
|---|---|
| 200 OK | {"message": "Found in Layout"} |
| 404 Not Found | {"message": "Not found"}} |
Example
Bash command
curl --header "Content-Type: application/json" \
--request POST \
--data '{"action": {"id": "power_on", "role": "tv"}}' \
http://192.168.0.100/api/action