POST api/Device/EditDevice

Amend device info [vehicle]

Request Information

Body Parameters

EditDeviceModel
NameDescriptionTypeAdditional information
DeviceId

device id

integer

None.

DeviceName

Device name

string

None.

PhoneNum

Device Sim card number

string

None.

Contact

contactor

string

None.

ContactPhone

Contact phone

string

None.

Avatar

picture Url

string

None.

SpeedLimit

overspeed limiter

integer

None.

Icon

Diagram icon

integer

None.

CarNum

license plate number

string

None.

SOSPhone1

string

None.

SOSPhone2

string

None.

CarColor

string

None.

CarType

string

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

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",
  "SOSPhone1": "sample string 10",
  "SOSPhone2": "sample string 11",
  "CarColor": "sample string 12",
  "CarType": "sample string 13",
  "Token": "sample string 14",
  "Language": "sample string 15",
  "AppId": "sample string 16"
}

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 16</AppId>
  <Language>sample string 15</Language>
  <Token>sample string 14</Token>
  <Avatar>sample string 6</Avatar>
  <CarColor>sample string 12</CarColor>
  <CarNum>sample string 9</CarNum>
  <CarType>sample string 13</CarType>
  <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>
  <SOSPhone1>sample string 10</SOSPhone1>
  <SOSPhone2>sample string 11</SOSPhone2>
  <SpeedLimit>7</SpeedLimit>
</EditDeviceModel>

Response Information

Resource Description

Statestatus codeillustrate:
0. return to success
1100. device does not exist

NormalResult
NameDescriptionTypeAdditional information
Message

Message [in most cases, the message can be used as a prompt]

string

None.

State

status code

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>