POST api/Customer/UpdateConsumerDevice
Update Customer device (Tank) Details
Request Information
URI Parameters
None.
Body Parameters
JSON String
CustomerDevicesObject| Name | Description | Type | Additional information |
|---|---|---|---|
| ID |
For Edit mode set value otherwise set = 0 |
Object |
None. |
| CustomerID |
ConsumerId is required |
Object |
None. |
| DeviceID |
DeviceId is required |
Object |
None. |
| TankTemplateID |
TankTemplate is required |
Object |
None. |
| Name |
TankName is required |
Object |
None. |
| TankMaterial |
Its optional value |
Object |
None. |
| Location |
Its optional value |
Object |
None. |
| Latitude |
Its optional value |
Object |
None. |
| Longitude |
Its optional value |
Object |
None. |
| Photo |
Its optional value |
Object |
None. |
| BottomOutletHeight |
Its optional value |
Object |
None. |
| Capacity_of_Adjustment |
Its optional value |
Object |
None. |
| UsableCapacity |
Its optional value |
Object |
None. |
| CurrentFirmwareID |
Its optional value |
Object |
None. |
| Status |
Its optional value |
Object |
None. |
| Waveguide |
Its optional value |
Object |
None. |
| Bund |
Its optional value |
Object |
None. |
| AlarmSchedulePeriod |
Its optional value |
Object |
None. |
| AlarmConnectionTime |
Its optional value |
Object |
None. |
| AlarmEndTime |
Its optional value |
Object |
None. |
| Weekdays |
Its optional value |
Object |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": {},
"CustomerID": {},
"DeviceID": {},
"TankTemplateID": {},
"Name": {},
"TankMaterial": {},
"Location": {},
"Latitude": {},
"Longitude": {},
"Photo": {},
"BottomOutletHeight": {},
"Capacity_of_Adjustment": {},
"UsableCapacity": {},
"CurrentFirmwareID": {},
"Status": {},
"Waveguide": {},
"Bund": {},
"AlarmSchedulePeriod": {},
"AlarmConnectionTime": {},
"AlarmEndTime": {},
"Weekdays": {},
"CreatedBy": {},
"CreatedDateTime": {},
"CreatedIp": {},
"ModifiedBy": {},
"ModifiedDateTime": {},
"ModifiedIp": {}
}
application/xml, text/xml
Sample:
<CustomerDevicesObject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StrategicAlliance"> <AlarmConnectionTime /> <AlarmEndTime /> <AlarmSchedulePeriod /> <BottomOutletHeight /> <Bund /> <Capacity_of_Adjustment /> <CreatedBy /> <CreatedDateTime /> <CreatedIp /> <CurrentFirmwareID /> <CustomerID /> <DeviceID /> <ID /> <Latitude /> <Location /> <Longitude /> <ModifiedBy /> <ModifiedDateTime /> <ModifiedIp /> <Name /> <Photo /> <Status /> <TankMaterial /> <TankTemplateID /> <UsableCapacity /> <Waveguide /> <Weekdays /> </CustomerDevicesObject>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
if Success then return Customer DeviceID otherwise return message
APIResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | integer |
None. |
|
| Description | string |
None. |
|
| Data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": 1,
"Description": "sample string 2",
"Data": {}
}
application/xml, text/xml
Sample:
<APIResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/sscTeklekWebAPI.Models"> <Data /> <Description>sample string 2</Description> <Status>1</Status> </APIResult>