POST api/ConsumerDevice/Edit

To edit consumer device

Request Information

URI Parameters

None.

Body Parameters

CustomerDevicesObject
NameDescriptionTypeAdditional 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

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.