POST api/CarMaintain/SaveMaintain

Added maintenance record

Request Information

Body Parameters

MaintainListModel
NameDescriptionTypeAdditional information
Item

Maintenance records

CarMaintainListInfo

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": {
    "Cost": 1.0,
    "Created": "sample string 2",
    "DeviceID": 3,
    "Distance": 4.0,
    "Id": 5,
    "MaintainTime": "sample string 6",
    "MaintainType": 7
  },
  "Token": "sample string 1",
  "Language": "sample string 2",
  "AppId": "sample string 3"
}

application/xml, text/xml

Sample:
<MaintainListModel 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:Cost>1</d2p1:Cost>
    <d2p1:Created>sample string 2</d2p1:Created>
    <d2p1:DeviceID>3</d2p1:DeviceID>
    <d2p1:Distance>4</d2p1:Distance>
    <d2p1:Id>5</d2p1:Id>
    <d2p1:MaintainTime>sample string 6</d2p1:MaintainTime>
    <d2p1:MaintainType>7</d2p1:MaintainType>
  </Item>
</MaintainListModel>

Response Information

Resource Description

State value is:
0. Indicates success
4000.Says failure

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