POST hub/{serial}/Equipment/Add/{CodeEquipmentpool}
Add equipment to device. Require subsciption
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
serial |
Serial of the Hub |
string |
Required |
CodeEquipmentpool |
Code of the equipment |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
IHttpActionResult
Flipr.Web.Api.Controllers.JsonWrappers.AddedEquipementName | Description | Type | Additional information |
---|---|---|---|
EquipementId |
newstate |
integer |
None. |
EquipementName |
newstate |
string |
None. |
EquipementCode |
newstate |
Flipr.Data.SQL.Pool.EquipmentCode |
None. |
PoolId | integer |
None. |
|
ErrorCode |
Gets or sets the error code if there is one |
string |
None. |
Message |
Gets or sets the error message if there is one |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "EquipementId": 1, "EquipementName": "sample string 2", "EquipementCode": 0, "PoolId": 1, "ErrorCode": "sample string 3", "Message": "sample string 4" }
text/html
Sample:
{"EquipementId":1,"EquipementName":"sample string 2","EquipementCode":0,"PoolId":1,"ErrorCode":"sample string 3","Message":"sample string 4"}