POST api/OpenApi/AddAttachment
添加电站图片
Request Information
URI Parameters
None.
Body Parameters
AddPowerPicName | Description | Type | Additional information |
---|---|---|---|
base64 | string |
Required |
|
file_name | string |
Required String length: inclusive between 0 and 50 |
|
object_id | string |
Required |
Request Formats
application/json, text/json
Sample:
{ "base64": "sample string 1", "file_name": "sample string 2", "object_id": "sample string 3" }
application/xml, text/xml
Sample:
<AddPowerPic xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Goodwe.Ops.OpenApi.Models"> <base64>sample string 1</base64> <file_name>sample string 2</file_name> <object_id>sample string 3</object_id> </AddPowerPic>
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. |