PUT api/Devices/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

UpdateDeviceArgs
NameDescriptionTypeAdditional information
State

DeviceState

None.

EnvironmentType

EnvironmentType

None.

Comments

string

None.

CustomField1

string

None.

CustomField2

string

None.

CustomField3

string

None.

Request Formats

application/json, text/json

Sample:
{
  "State": 0,
  "EnvironmentType": 0,
  "Comments": "sample string 1",
  "CustomField1": "sample string 2",
  "CustomField2": "sample string 3",
  "CustomField3": "sample string 4"
}

application/xml, text/xml

Sample:
<UpdateDeviceArgs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/S3API.Controllers">
  <Comments>sample string 1</Comments>
  <CustomField1>sample string 2</CustomField1>
  <CustomField2>sample string 3</CustomField2>
  <CustomField3>sample string 4</CustomField3>
  <EnvironmentType>Unspecified</EnvironmentType>
  <State>Live</State>
</UpdateDeviceArgs>

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

Response Information

Resource Description

None.