POST api/OpenApi/AddInventers
新增设备
Request Information
URI Parameters
None.
Body Parameters
AddPowerInventer| Name | Description | Type | Additional information |
|---|---|---|---|
| pw_id | string |
Required |
|
| it_name | string |
Required String length: inclusive between 0 and 50 |
|
| it_sn | string |
Required String length: inclusive between 0 and 16 |
|
| it_checkcode | string |
Required String length: inclusive between 0 and 50 |
Request Formats
application/json, text/json
Sample:
{
"pw_id": "sample string 1",
"it_name": "sample string 2",
"it_sn": "sample string 3",
"it_checkcode": "sample string 4"
}
application/xml, text/xml
Sample:
<AddPowerInventer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Goodwe.Ops.OpenApi.Models"> <it_checkcode>sample string 4</it_checkcode> <it_name>sample string 2</it_name> <it_sn>sample string 3</it_sn> <pw_id>sample string 1</pw_id> </AddPowerInventer>
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. |