POST api/CarInfo/SaveCarInfo

Achieve vehicle info

Request Information

Body Parameters

save achieve vehicle info parameter

SaveCarInfoModel
NameDescriptionTypeAdditional information
Sid

record id

integer

None.

DeviceId

device id

integer

None.

BrandId

brand id

integer

None.

SerId

car series id

integer

None.

ModelId

type id

integer

None.

EngineNum

engine number

string

None.

FrameNum

vehicle identification number

string

None.

InitDistance

Reset initial mileage

integer

None.

CarNo

plate number

string

None.

Avatar

picture

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:
{
  "Sid": 1,
  "DeviceId": 2,
  "BrandId": 3,
  "SerId": 4,
  "ModelId": 5,
  "EngineNum": "sample string 6",
  "FrameNum": "sample string 7",
  "InitDistance": 8,
  "CarNo": "sample string 9",
  "Avatar": "sample string 10",
  "Token": "sample string 11",
  "Language": "sample string 12",
  "AppId": "sample string 13"
}

application/xml, text/xml

Sample:
<SaveCarInfoModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 13</AppId>
  <Language>sample string 12</Language>
  <Token>sample string 11</Token>
  <Avatar>sample string 10</Avatar>
  <BrandId>3</BrandId>
  <CarNo>sample string 9</CarNo>
  <DeviceId>2</DeviceId>
  <EngineNum>sample string 6</EngineNum>
  <FrameNum>sample string 7</FrameNum>
  <InitDistance>8</InitDistance>
  <ModelId>5</ModelId>
  <SerId>4</SerId>
  <Sid>1</Sid>
</SaveCarInfoModel>

Response Information

Resource Description

State value is:
0. Indicates success
1100. says device doesn't exist
4000. failure

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>