POST api/{version}/OpenApi/AddPowerStation
新增电站
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
version | string |
None. |
Body Parameters
AddPowerStationName | 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": "2025-05-15 19:55:12", "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/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. |