POST api/Strategy/ModifyItem
修改一个策略项
Request Information
URI Parameters
None.
Body Parameters
M_ModifyStrategyItem| Name | Description | Type | Additional information |
|---|---|---|---|
| Type |
控制模式 |
string |
Required |
| Time |
时间 |
string |
Required |
| IMEI |
光照器IMEI |
string |
Required |
| TopLux |
光照阈值顶 |
integer |
Required |
| BottomLux |
光照阈值底 |
integer |
Required |
| Lat |
纬度 |
string |
Required |
| Lon |
经度 |
string |
Required |
| OnAdj |
开灯偏移量(+-分钟) |
integer |
Required |
| OffAdj |
关灯偏移量(+-分钟) |
integer |
Required |
| MainC |
集控开关 0bxxxxxx00 |
integer |
Required |
| ControlType |
只控总闸 |
string |
Required |
| S1S2 |
单灯开关 0bxx000000 |
integer |
Required |
| Group |
单灯组 不填为所有,多组用逗号分隔 |
string |
Required |
| PWM1 |
调光1 0-100 |
integer |
Required |
| PWM2 |
调光2 0-100 |
integer |
Required |
| ControlModel |
控制模式 |
string |
Required |
| StrategySN |
策略序号 |
integer |
Required |
| Name |
名称 |
string |
Required |
| Index |
策略项队列序号 |
integer |
Required |
Request Formats
application/json, text/json
Sample:
{
"Type": "sample string 1",
"Time": "sample string 2",
"IMEI": "sample string 3",
"TopLux": 4,
"BottomLux": 5,
"Lat": "sample string 6",
"Lon": "sample string 7",
"OnAdj": 8,
"OffAdj": 9,
"MainC": 10,
"ControlType": "sample string 11",
"S1S2": 12,
"Group": "sample string 13",
"PWM1": 14,
"PWM2": 15,
"ControlModel": "sample string 16",
"StrategySN": 17,
"Name": "sample string 18",
"Index": 19
}
application/xml, text/xml
Sample:
<M_ModifyStrategyItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.DP.Models"> <Index>19</Index> <Name>sample string 18</Name> <StrategySN>17</StrategySN> <BottomLux>5</BottomLux> <ControlModel>sample string 16</ControlModel> <ControlType>sample string 11</ControlType> <Group>sample string 13</Group> <IMEI>sample string 3</IMEI> <Lat>sample string 6</Lat> <Lon>sample string 7</Lon> <MainC>10</MainC> <OffAdj>9</OffAdj> <OnAdj>8</OnAdj> <PWM1>14</PWM1> <PWM2>15</PWM2> <S1S2>12</S1S2> <Time>sample string 2</Time> <TopLux>4</TopLux> <Type>sample string 1</Type> </M_ModifyStrategyItem>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
M_rpStrategyItem| Name | Description | Type | Additional information |
|---|---|---|---|
| Contant |
内容,包含返回所需要的类 |
StrategyItem |
Required |
| Status |
状态 |
integer |
Required |
| Msg |
信息 |
string |
Required |
| Num |
数值,数据变动条数或增加时返回的ID |
integer |
Required |
Response Formats
application/json, text/json
Sample:
{
"Contant": {
"Name": "sample string 1",
"Type": "sample string 2",
"Time": "sample string 3",
"IMEI": "sample string 4",
"TopLux": 5,
"BottomLux": 6,
"Lat": "sample string 7",
"Lon": "sample string 8",
"OnAdj": 9,
"OffAdj": 10,
"MainC": 11,
"S1S2": 12,
"Group": "sample string 13",
"PWM1": 14,
"PWM2": 15,
"ControlType": "sample string 16",
"ControlModel": "sample string 17"
},
"Status": 1,
"Msg": "sample string 2",
"Num": 3
}
application/xml, text/xml
Sample:
<M_rpStrategyItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.DP.Models">
<Msg>sample string 2</Msg>
<Num>3</Num>
<Status>1</Status>
<Contant xmlns:d2p1="http://schemas.datacontract.org/2004/07/Data">
<d2p1:BottomLux>6</d2p1:BottomLux>
<d2p1:ControlModel>sample string 17</d2p1:ControlModel>
<d2p1:ControlType>sample string 16</d2p1:ControlType>
<d2p1:Group>sample string 13</d2p1:Group>
<d2p1:IMEI>sample string 4</d2p1:IMEI>
<d2p1:Lat>sample string 7</d2p1:Lat>
<d2p1:Lon>sample string 8</d2p1:Lon>
<d2p1:MainC>11</d2p1:MainC>
<d2p1:Name>sample string 1</d2p1:Name>
<d2p1:OffAdj>10</d2p1:OffAdj>
<d2p1:OnAdj>9</d2p1:OnAdj>
<d2p1:PWM1>14</d2p1:PWM1>
<d2p1:PWM2>15</d2p1:PWM2>
<d2p1:S1S2>12</d2p1:S1S2>
<d2p1:Time>sample string 3</d2p1:Time>
<d2p1:TopLux>5</d2p1:TopLux>
<d2p1:Type>sample string 2</d2p1:Type>
</Contant>
</M_rpStrategyItem>