POST api/Dev/Dosimeter/UpdateExtInfo
修改表的扩展信息
Request Information
URI Parameters
None.
Body Parameters
DosimeterExtendParm| Name | Description | Type | Additional information |
|---|---|---|---|
| serialid |
表的唯一序列号 |
integer |
Required |
| province |
省、市、自治区(名称) |
string |
Max length: 10 |
| city |
市(名称) |
string |
Max length: 10 |
| county |
县(名称) |
string |
Max length: 10 |
| setaddress |
安装地址 |
string |
Max length: 15 |
| longitude |
经度 |
decimal number |
None. |
| latitude |
纬度 |
decimal number |
None. |
| reserve1 |
保留一 |
string |
Max length: 10 |
| reserve2 |
保留二 |
string |
Max length: 10 |
| shaftnum |
井/渠号 |
string |
Max length: 20 |
Request Formats
application/json, text/json
Sample:
{
"serialid": 1,
"province": "sample string 2",
"city": "sample string 3",
"county": "sample string 4",
"setaddress": "sample string 5",
"longitude": 6.0,
"latitude": 7.0,
"reserve1": "sample string 8",
"reserve2": "sample string 9",
"shaftnum": "sample string 10"
}
application/xml, text/xml
Sample:
<DosimeterExtendParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Dosimeter"> <city>sample string 3</city> <county>sample string 4</county> <latitude>7</latitude> <longitude>6</longitude> <province>sample string 2</province> <reserve1>sample string 8</reserve1> <reserve2>sample string 9</reserve2> <serialid>1</serialid> <setaddress>sample string 5</setaddress> <shaftnum>sample string 10</shaftnum> </DosimeterExtendParm>
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
修改表的扩展信息
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.