POST API/LevelSensor

URL:- https://ejalshakti.gov.in/IoT_API/API/LevelSensor

Request Information

Body Parameters

LevelSensorinput
NameDescriptionTypeAdditional information
VillageId

string

Required

GatewayId

string

Required

LevelSensorData

Collection of LevelSensorData

None.

TimeStamp

date

Data type: DateTime

LevelSensorValue

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "VillageId": "sample string 1",
  "GatewayId": "sample string 2",
  "LevelSensorData": [
    {
      "TimeStamp": "2026-04-05T13:23:25.9679008+05:30",
      "LevelSensorValue": 2.0
    },
    {
      "TimeStamp": "2026-04-05T13:23:25.9679008+05:30",
      "LevelSensorValue": 2.0
    }
  ],
  "TimeStamp": "2026-04-05T13:23:25.9679008+05:30",
  "LevelSensorValue": 4.0
}

application/xml, text/xml

Sample:
<LevelSensorinput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IoT_API.Models">
  <GatewayId>sample string 2</GatewayId>
  <LevelSensorData>
    <LevelSensorData>
      <LevelSensorValue>2</LevelSensorValue>
      <TimeStamp>2026-04-05T13:23:25.9679008+05:30</TimeStamp>
    </LevelSensorData>
    <LevelSensorData>
      <LevelSensorValue>2</LevelSensorValue>
      <TimeStamp>2026-04-05T13:23:25.9679008+05:30</TimeStamp>
    </LevelSensorData>
  </LevelSensorData>
  <LevelSensorValue>4</LevelSensorValue>
  <TimeStamp>2026-04-05T13:23:25.9679008+05:30</TimeStamp>
  <VillageId>sample string 1</VillageId>
</LevelSensorinput>

application/x-www-form-urlencoded

Sample:

Sample not available.