POST api/Agent/Agent/LandGroup/AddNew
创建新的组。 result.errcode=0表示成功,tag中返回当前添加成功的记录的ID。
Request Information
URI Parameters
None.
Body Parameters
被添加的组的信息。注意,参数中指定运营商ID,组ID均在此操作中无效。
AgentLandGroupTableItemParm| Name | 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
创建新的组。 result.errcode=0表示成功,tag中返回当前添加成功的记录的ID。
CommonOperationResultWithTagOfInt64| Name | Description | Type | Additional information | 
|---|---|---|---|
| errcode | integer | 
                             None.  | 
                |
| errmsg | string | 
                             None.  | 
                |
| tag | integer | 
                             None.  | 
                
Response Formats
application/json, text/json
            Sample:
        
{
  "errcode": 1,
  "errmsg": "sample string 2",
  "tag": 3
}
        application/xml, text/xml
            Sample:
        <CommonOperationResultWithTagOflong 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>3</tag> </CommonOperationResultWithTagOflong>
application/bson
            Sample:
Binary JSON content. See http://bsonspec.org for details.