POST api/EcoCar/Setting/Line/T/Update
修改一个已经存在的环保车运营线路(删除时,会较验约定的线路是否在系统中存在),需要绑定返回值的errcode,errcode=0表示成功。
Request Information
URI Parameters
None.
Body Parameters
EcoCarLineItem| Name | Description | Type | Additional information |
|---|---|---|---|
| lineid |
线路的ID,一旦创建,就不能修改。 |
string |
Required Max length: 4 Min length: 4 |
| linename |
线路名称。 |
string |
Required Max length: 20 |
| normaltime |
正常运营时长(单位分钟),当需要计算班次准点率时,此值是核算的依据。 |
decimal number |
None. |
| ticketchecktype |
售检票形式 A:先购票后上车,上车检票;B:先上车后购票两种;C:免费乘车三种。 |
string |
Required Max length: 1 Min length: 1 |
| memory |
备注。 |
string |
Max length: 100 |
Request Formats
application/json, text/json
Sample:
{
"lineid": "sample string 1",
"linename": "sample string 2",
"normaltime": 3.0,
"ticketchecktype": "sample string 4",
"memory": "sample string 5"
}
application/xml, text/xml
Sample:
<EcoCarLineItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.EcoCar"> <lineid>sample string 1</lineid> <linename>sample string 2</linename> <memory>sample string 5</memory> <normaltime>3</normaltime> <ticketchecktype>sample string 4</ticketchecktype> </EcoCarLineItem>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
修改一个已经存在的环保车运营线路(删除时,会较验约定的线路是否在系统中存在),需要绑定返回值的errcode,errcode=0表示成功。
CommonOperationResult| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode |
错误代码,通常0表示成功,其他值表示错误。 |
integer |
None. |
| errmsg |
错误描述,当errcode不为零时,此值可以用于呈现给用户。 |
string |
None. |
| tag |
操作同时,服务器端需要返回的其他值。 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"errcode": 1,
"errmsg": "sample string 2",
"tag": "sample string 3"
}
application/xml, text/xml
Sample:
<CommonOperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer"> <errcode>1</errcode> <errmsg>sample string 2</errmsg> <tag>sample string 3</tag> </CommonOperationResult>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.