POST api/CarMaintain/MaintainSetting

Car maintenance setting

Request Information

Body Parameters

device maintenance parameters

CarMaintainModel
NameDescriptionTypeAdditional information
Item

Maintenance Settings information

CarMaintainInfo

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:
{
  "Item": {
    "Created": "2018-12-19T05:10:41.1848438+08:00",
    "DeviceID": 2,
    "Distance": 3.0,
    "Id": 4,
    "NextTime": "2018-12-19T05:10:41.1848438+08:00"
  },
  "Token": "sample string 1",
  "Language": "sample string 2",
  "AppId": "sample string 3"
}

application/xml, text/xml

Sample:
<CarMaintainModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 3</AppId>
  <Language>sample string 2</Language>
  <Token>sample string 1</Token>
  <Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:Created>2018-12-19T05:10:41.1848438+08:00</d2p1:Created>
    <d2p1:DeviceID>2</d2p1:DeviceID>
    <d2p1:Distance>3</d2p1:Distance>
    <d2p1:Id>4</d2p1:Id>
    <d2p1:NextTime>2018-12-19T05:10:41.1848438+08:00</d2p1:NextTime>
  </Item>
</CarMaintainModel>

Response Information

Resource Description

State status:
0. Indicates success
4000. Says failure

CarMaintainResult
NameDescriptionTypeAdditional information
Message

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:
<CarMaintainResult 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>
</CarMaintainResult>