POST api/OpenApi/UpdatePowerStation

修改电站基础信息

Request Information

URI Parameters

None.

Body Parameters

UpdatePowerStationParam
NameDescriptionTypeAdditional 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/xml, text/xml

Sample:
<UpdatePowerStationParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Goodwe.Ops.OpenApi.Models">
  <id>sample string 1</id>
  <pw_address>sample string 3</pw_address>
  <pw_areacode>sample string 4</pw_areacode>
  <pw_capacity>1</pw_capacity>
  <pw_inventersnum>1</pw_inventersnum>
  <pw_latitude>sample string 6</pw_latitude>
  <pw_longitude>sample string 5</pw_longitude>
  <pw_name>sample string 2</pw_name>
  <pw_synopsis>sample string 7</pw_synopsis>
  <pw_synopsishide>true</pw_synopsishide>
  <pw_type>1</pw_type>
  <pw_yieldrate>1</pw_yieldrate>
</UpdatePowerStationParam>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.