POST api/v1/wifi/addRemoveWiFiThermostats/location/{locationId}/tccLocationId/{tccLocationId}/partnerId/{partnerId}
To Add/Delete the WiFi Thermostats in Total Connect. Equivalent SOAP API : AddDeleteWiFiThermostats
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| locationId | integer |
Required |
|
| tccLocationId | integer |
Required |
|
| partnerId | string |
Required |
Body Parameters
Collection of TCCWiFiDeviceInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| TCCDeviceID | integer |
None. |
|
| DeviceName | string |
None. |
|
| ThermostatConfiguration | WiFiThermostatConfigInfo |
None. |
|
| ThermostatLocationName | string |
None. |
|
| ThermostatSerialNo | string |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"TCCDeviceID": 1,
"DeviceName": "sample string 3",
"ThermostatConfiguration": {
"ThermostatID": 1,
"ThermostatConfigState": 2
},
"ThermostatLocationName": "sample string 4",
"ThermostatSerialNo": "sample string 5"
},
{
"TCCDeviceID": 1,
"DeviceName": "sample string 3",
"ThermostatConfiguration": {
"ThermostatID": 1,
"ThermostatConfigState": 2
},
"ThermostatLocationName": "sample string 4",
"ThermostatSerialNo": "sample string 5"
}
]
application/xml, text/xml
Sample:
<ArrayOfTCCWiFiDeviceInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TC2Domain.Automation">
<TCCWiFiDeviceInfo>
<DeviceName>sample string 3</DeviceName>
<TCCDeviceID>1</TCCDeviceID>
<TCCLocationID>2</TCCLocationID>
<ThermostatConfiguration>
<ThermostatConfigState>2</ThermostatConfigState>
<ThermostatID>1</ThermostatID>
</ThermostatConfiguration>
<ThermostatLocationName>sample string 4</ThermostatLocationName>
<ThermostatSerialNo>sample string 5</ThermostatSerialNo>
</TCCWiFiDeviceInfo>
<TCCWiFiDeviceInfo>
<DeviceName>sample string 3</DeviceName>
<TCCDeviceID>1</TCCDeviceID>
<TCCLocationID>2</TCCLocationID>
<ThermostatConfiguration>
<ThermostatConfigState>2</ThermostatConfigState>
<ThermostatID>1</ThermostatID>
</ThermostatConfiguration>
<ThermostatLocationName>sample string 4</ThermostatLocationName>
<ThermostatSerialNo>sample string 5</ThermostatSerialNo>
</TCCWiFiDeviceInfo>
</ArrayOfTCCWiFiDeviceInfo>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BaseResults
BaseResults| Name | Description | Type | Additional information |
|---|---|---|---|
| ResultCode | integer |
None. |
|
| ResultData | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ResultCode": 1,
"ResultData": "sample string 2"
}
application/xml, text/xml
Sample:
<BaseResults xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TC2Utilities.RestApi"> <ResultCode>1</ResultCode> <ResultData>sample string 2</ResultData> </BaseResults>