POST api/Device/EditDevice
修改设备信息[车机]
Request Information
Body Parameters
EditDeviceModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DeviceId |
设备Id |
integer |
None. |
| DeviceName |
设备名称 |
string |
None. |
| PhoneNum |
设备Sim卡号 |
string |
None. |
| Contact |
联系人 |
string |
None. |
| ContactPhone |
联系人电话 |
string |
None. |
| Avatar |
图片 Url |
string |
None. |
| SpeedLimit |
超速限制 |
integer |
None. |
| Icon |
图表icon |
integer |
None. |
| CarNum |
车牌号 |
string |
None. |
| Token |
登录后获取到的 Token |
string |
None. |
| Language |
语言选项 |
string |
None. |
| AppId |
APP应用标识 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"DeviceId": 1,
"DeviceName": "sample string 2",
"PhoneNum": "sample string 3",
"Contact": "sample string 4",
"ContactPhone": "sample string 5",
"Avatar": "sample string 6",
"SpeedLimit": 7,
"Icon": 8,
"CarNum": "sample string 9",
"Token": "sample string 10",
"Language": "sample string 11",
"AppId": "sample string 12"
}
application/xml, text/xml
Sample:
<EditDeviceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel"> <AppId>sample string 12</AppId> <Language>sample string 11</Language> <Token>sample string 10</Token> <Avatar>sample string 6</Avatar> <CarNum>sample string 9</CarNum> <Contact>sample string 4</Contact> <ContactPhone>sample string 5</ContactPhone> <DeviceId>1</DeviceId> <DeviceName>sample string 2</DeviceName> <Icon>8</Icon> <PhoneNum>sample string 3</PhoneNum> <SpeedLimit>7</SpeedLimit> </EditDeviceModel>
Response Information
Resource Description
State状态码说明:
0. 返回成功
1100. 设备不存在
| Name | Description | Type | Additional information |
|---|---|---|---|
| Message |
消息 [大多数情况下可通过该消息做为提示语] |
string |
None. |
| State |
状态码 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Message": "sample string 1",
"State": 2
}
application/xml, text/xml
Sample:
<NormalResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel"> <State>2</State> <Message>sample string 1</Message> </NormalResult>