POST API/PHLevel
URL:- https://ejalshakti.gov.in/IoT_API/API/PHLevel
Request Information
Body Parameters
PhLevelinput| Name | Description | Type | Additional information |
|---|---|---|---|
| VillageId | string |
Required |
|
| GatewayId | string |
Required |
|
| PhLevelData | Collection of PhLevelinputData |
None. |
|
| TimeStamp | date |
Data type: DateTime |
|
| PH_Level | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"VillageId": "sample string 1",
"GatewayId": "sample string 2",
"PhLevelData": [
{
"TimeStamp": "2026-04-05T13:21:05.3072532+05:30",
"PH_Level": 2.0
},
{
"TimeStamp": "2026-04-05T13:21:05.3072532+05:30",
"PH_Level": 2.0
}
],
"TimeStamp": "2026-04-05T13:21:05.3072532+05:30",
"PH_Level": 4.0
}
application/xml, text/xml
Sample:
<PhLevelinput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IoT_API.Models">
<GatewayId>sample string 2</GatewayId>
<PH_Level>4</PH_Level>
<PhLevelData>
<PhLevelinputData>
<PH_Level>2</PH_Level>
<TimeStamp>2026-04-05T13:21:05.3072532+05:30</TimeStamp>
</PhLevelinputData>
<PhLevelinputData>
<PH_Level>2</PH_Level>
<TimeStamp>2026-04-05T13:21:05.3072532+05:30</TimeStamp>
</PhLevelinputData>
</PhLevelData>
<TimeStamp>2026-04-05T13:21:05.3072532+05:30</TimeStamp>
<VillageId>sample string 1</VillageId>
</PhLevelinput>
application/x-www-form-urlencoded
Sample:
Sample not available.