PUT api/Distributor/Device

Request Information

URI Parameters

None.

Body Parameters

DeviceUpdateObj
NameDescriptionTypeAdditional information
token

string

None.

deviceId

integer

None.

deviceType

integer

None.

deviceName

string

None.

deviceSIM

string

None.

deviceWires

integer

None.

deviceLat

string

None.

deviceLng

string

None.

Request Formats

application/json, text/json

Sample:
{
  "token": "sample string 1",
  "deviceId": 2,
  "deviceType": 3,
  "deviceName": "sample string 4",
  "deviceSIM": "sample string 5",
  "deviceWires": 6,
  "deviceLat": "sample string 7",
  "deviceLng": "sample string 8"
}

application/xml, text/xml

Sample:
<DeviceUpdateObj xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RiegoAppDistribuidoresAPI.Models">
  <deviceId>2</deviceId>
  <deviceLat>sample string 7</deviceLat>
  <deviceLng>sample string 8</deviceLng>
  <deviceName>sample string 4</deviceName>
  <deviceSIM>sample string 5</deviceSIM>
  <deviceType>3</deviceType>
  <deviceWires>6</deviceWires>
  <token>sample string 1</token>
</DeviceUpdateObj>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DeviceUpdateObj'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.