POST api/Device/ChangeDevice

Modify the device, the real man.

Request Information

Body Parameters

ChangeDeviceModel
NameDescriptionTypeAdditional information
UserId

target user

integer

None.

DeviceId

integer

None.

OldSerialNumber

Original imei

string

None.

NewSerialNumber

New IMEI

string

None.

PhoneNum

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:
{
  "UserId": 1,
  "DeviceId": 2,
  "OldSerialNumber": "sample string 3",
  "NewSerialNumber": "sample string 4",
  "PhoneNum": "sample string 5",
  "Token": "sample string 6",
  "Language": "sample string 7",
  "AppId": "sample string 8"
}

application/xml, text/xml

Sample:
<ChangeDeviceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 8</AppId>
  <Language>sample string 7</Language>
  <Token>sample string 6</Token>
  <DeviceId>2</DeviceId>
  <NewSerialNumber>sample string 4</NewSerialNumber>
  <OldSerialNumber>sample string 3</OldSerialNumber>
  <PhoneNum>sample string 5</PhoneNum>
  <UserId>1</UserId>
</ChangeDeviceModel>

Response Information

Resource Description

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>