POST Device/{deviceId}/Add/{assetId}
Add asset to device.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| assetId |
The id of the asset |
integer |
Required |
| deviceId |
The id of the device |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
A bool
TupleOfBooleanAndString| Name | Description | Type | Additional information |
|---|---|---|---|
| Item1 | boolean |
None. |
|
| Item2 | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Item1": true,
"Item2": "sample string 2"
}
application/xml, text/xml
Sample:
<TupleOfbooleanstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/System"> <m_Item1>true</m_Item1> <m_Item2>sample string 2</m_Item2> </TupleOfbooleanstring>