PUT api/Device/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

DeviceModel
NameDescriptionTypeAdditional information
Id

integer

None.

SerialNumber

string

None.

QRCode

string

None.

TypeId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "SerialNumber": "sample string 2",
  "QRCode": "sample string 3",
  "TypeId": 4
}

application/xml, text/xml

Sample:
<DeviceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebServis.Db">
  <Id>1</Id>
  <QRCode>sample string 3</QRCode>
  <SerialNumber>sample string 2</SerialNumber>
  <TypeId>4</TypeId>
</DeviceModel>

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 'DeviceModel'.

Response Information

Resource Description

None.