POST api/Agent/MicroApp/Edit/LandGroup
修改一个土地组,该组只有在属于当前运营商的情况下才允许被修改
Request Information
URI Parameters
None.
Body Parameters
AgentLandGroupTableItemParmName | Description | Type | Additional information |
---|---|---|---|
LandGroupId |
土地组ID Bigint PK 自增长编号,AUTOID。 注意,在添加一个组,此值不会被采信,可以是任的值;在修改的时候,此值是被修改行的标识。 |
integer |
Required |
AgentId |
运营商ID AgentId Bigint FK 指明这个组属于哪一个运营商。 注意,在添加、修改时,此值均不会被采信,系统会自动使用当前用户所属的运营商的值代替该值,并且会判断您发起的请求对应的操作记录是否属于您所在的运营商。 |
integer |
Required |
GroupName |
组名称 varchar(60) 示例:三堂街镇龙牙坪村杨家湾2组。 |
string |
Required Max length: 30 |
GroupStatus |
状态 char(1) NN 1-表示启用,'0'表示停用。 |
string |
Required Matching regular expression pattern: [0|1] Max length: 1 Min length: 1 |
Request Formats
application/json, text/json
Sample:
{ "LandGroupId": 1, "AgentId": 2, "GroupName": "sample string 3", "GroupStatus": "sample string 4" }
application/xml, text/xml
Sample:
<AgentLandGroupTableItemParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Flowmeter"> <AgentId>2</AgentId> <GroupName>sample string 3</GroupName> <GroupStatus>sample string 4</GroupStatus> <LandGroupId>1</LandGroupId> </AgentLandGroupTableItemParm>
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
修改一个土地组,该组只有在属于当前运营商的情况下才允许被修改
CommonOperationResultName | 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.