PUT api/Devices/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
UpdateDeviceArgsName | Description | Type | Additional 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:
Response Information
Resource Description
None.