POST api/Milton/OperateDevice
Request Information
URI Parameters
None.
Body Parameters
SmartHomeSkillPowerControlRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| AuthToken | string |
None. |
|
| DeviceId | string |
None. |
|
| DevicePowerAction | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"AuthToken": "sample string 1",
"DeviceId": "sample string 2",
"DevicePowerAction": 3
}
application/xml, text/xml
Sample:
<SmartHomeSkillPowerControlRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hamilton.AlexaController.Models"> <AuthToken>sample string 1</AuthToken> <DeviceId>sample string 2</DeviceId> <DevicePowerAction>3</DevicePowerAction> </SmartHomeSkillPowerControlRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PowerControllerResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | string |
None. |
|
| Message | string |
None. |
|
| PowerState | integer |
None. |
|
| EndpointHealthConnectivity | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": "sample string 1",
"Message": "sample string 2",
"PowerState": 3,
"EndpointHealthConnectivity": 4
}
application/xml, text/xml
Sample:
<PowerControllerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hamilton.AlexaController.Controllers"> <EndpointHealthConnectivity>4</EndpointHealthConnectivity> <Message>sample string 2</Message> <PowerState>3</PowerState> <Status>sample string 1</Status> </PowerControllerResponse>