POST api/OpenApi/AddPowerStation
新增电站
Request Information
URI Parameters
None.
Body Parameters
AddPowerStation| Name | Description | Type | Additional information | 
|---|---|---|---|
| org_code | string | None. | |
| pw_name | string | Required String length: inclusive between 0 and 50 | |
| conn_date | date | Required | |
| pw_yieldrate | decimal number | Required Range: inclusive between 0 and 2 | |
| pw_inventersnum | integer | Required | |
| pw_capacity | decimal number | Required Range: inclusive between 0 and 6000 | |
| pw_address | string | Required String length: inclusive between 0 and 200 | |
| pw_areacode | string | Required String length: inclusive between 0 and 50 | |
| pw_type | integer | Required | |
| pw_longitude | string | Required String length: inclusive between 0 and 50 | |
| pw_latitude | string | Required String length: inclusive between 0 and 50 | |
| pw_synopsishide | boolean | None. | |
| pw_synopsis | string | None. | |
| list_pwowner | Collection of PowerOwer | None. | |
| list_attachment | Collection of PowerAttachment | None. | 
Request Formats
application/json, text/json
            Sample:
        
{
  "org_code": "sample string 1",
  "pw_name": "sample string 2",
  "conn_date": "10/31/2025 15:21:33",
  "pw_yieldrate": 4.0,
  "pw_inventersnum": 5,
  "pw_capacity": 6.0,
  "pw_address": "sample string 7",
  "pw_areacode": "sample string 8",
  "pw_type": 9,
  "pw_longitude": "sample string 10",
  "pw_latitude": "sample string 11",
  "pw_synopsishide": true,
  "pw_synopsis": "sample string 12",
  "list_pwowner": [
    {
      "owner_phone": "sample string 1",
      "owner_name": "sample string 2",
      "is_first_owner": true
    },
    {
      "owner_phone": "sample string 1",
      "owner_name": "sample string 2",
      "is_first_owner": true
    }
  ],
  "list_attachment": [
    {
      "file_name": "sample string 1",
      "base64": "sample string 2"
    },
    {
      "file_name": "sample string 1",
      "base64": "sample string 2"
    }
  ]
}
        application/xml, text/xml
            Sample:
        
<AddPowerStation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Goodwe.Ops.OpenApi.Models">
  <conn_date>2025-10-31T15:21:33.6438871+08:00</conn_date>
  <list_attachment>
    <PowerAttachment>
      <base64>sample string 2</base64>
      <file_name>sample string 1</file_name>
    </PowerAttachment>
    <PowerAttachment>
      <base64>sample string 2</base64>
      <file_name>sample string 1</file_name>
    </PowerAttachment>
  </list_attachment>
  <list_pwowner>
    <PowerOwer>
      <is_first_owner>true</is_first_owner>
      <owner_name>sample string 2</owner_name>
      <owner_phone>sample string 1</owner_phone>
    </PowerOwer>
    <PowerOwer>
      <is_first_owner>true</is_first_owner>
      <owner_name>sample string 2</owner_name>
      <owner_phone>sample string 1</owner_phone>
    </PowerOwer>
  </list_pwowner>
  <org_code>sample string 1</org_code>
  <pw_address>sample string 7</pw_address>
  <pw_areacode>sample string 8</pw_areacode>
  <pw_capacity>6</pw_capacity>
  <pw_inventersnum>5</pw_inventersnum>
  <pw_latitude>sample string 11</pw_latitude>
  <pw_longitude>sample string 10</pw_longitude>
  <pw_name>sample string 2</pw_name>
  <pw_synopsis>sample string 12</pw_synopsis>
  <pw_synopsishide>true</pw_synopsishide>
  <pw_type>9</pw_type>
  <pw_yieldrate>4</pw_yieldrate>
</AddPowerStation>
        application/x-www-form-urlencoded
            Sample:
    
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | 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. |