POST api/{version}/OpenApi/UpdatePowerStation
修改电站基础信息
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
version | string |
None. |
Body Parameters
UpdatePowerStationParamName | Description | Type | Additional information |
---|---|---|---|
id |
电站ID |
string |
None. |
pw_name |
电站名称 |
string |
String length: inclusive between 0 and 50 |
pw_yieldrate |
收益率 |
decimal number |
Range: inclusive between 0 and 2 |
pw_inventersnum |
组件数量 |
integer |
None. |
pw_capacity |
电站容量 |
decimal number |
Range: inclusive between 0 and 6000 |
pw_address |
所在地区 |
string |
String length: inclusive between 0 and 200 |
pw_areacode |
区域编码 |
string |
String length: inclusive between 0 and 50 |
pw_type |
电站类型 |
integer |
None. |
pw_longitude |
经度 |
string |
None. |
pw_latitude |
纬度 |
string |
None. |
pw_synopsishide |
pw_synopsishide |
boolean |
None. |
pw_synopsis |
电站简介 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "id": "sample string 1", "pw_name": "sample string 2", "pw_yieldrate": 1.0, "pw_inventersnum": 1, "pw_capacity": 1.0, "pw_address": "sample string 3", "pw_areacode": "sample string 4", "pw_type": 1, "pw_longitude": "sample string 5", "pw_latitude": "sample string 6", "pw_synopsishide": true, "pw_synopsis": "sample string 7" }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |