POST api/Power
Creates PowerReading.
Request Information
URI Parameters
None.
Body Parameters
PowerName | Description | Type | Additional information |
---|---|---|---|
AddressID | string |
None. |
|
StartTime | date |
None. |
|
KWH | decimal number |
None. |
|
Phase1KWh | decimal number |
None. |
|
Phase2KWh | decimal number |
None. |
|
Phase3KWh | decimal number |
None. |
|
ID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "AddressID": "sample string 1", "StartTime": "2024-11-21T10:37:52.5399181+01:00", "KWH": 3.0, "Phase1KWh": 4.0, "Phase2KWh": 5.0, "Phase3KWh": 6.0, "ID": 7 }
text/html
Sample:
{"AddressID":"sample string 1","StartTime":"2024-11-21T10:37:52.5399181+01:00","KWH":3.0,"Phase1KWh":4.0,"Phase2KWh":5.0,"Phase3KWh":6.0,"ID":7}
application/xml, text/xml
Sample:
<Power xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZPPModel"> <ID>7</ID> <AddressID>sample string 1</AddressID> <KWH>3</KWH> <Phase1KWh>4</Phase1KWh> <Phase2KWh>5</Phase2KWh> <Phase3KWh>6</Phase3KWh> <StartTime>2024-11-21T10:37:52.5399181+01:00</StartTime> </Power>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.