POST API/TurbidityLevel

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

Request Information

Body Parameters

TurbidityLevelinput
NameDescriptionTypeAdditional information
VillageId

string

Required

GatewayId

string

Required

TurbidityLevelData

Collection of TurbidityLevelData

None.

TimeStamp

date

Data type: DateTime

Turbidity

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "VillageId": "sample string 1",
  "GatewayId": "sample string 2",
  "TurbidityLevelData": [
    {
      "TimeStamp": "2026-04-05T01:49:37.5482147+05:30",
      "Turbidity": 2.0
    },
    {
      "TimeStamp": "2026-04-05T01:49:37.5482147+05:30",
      "Turbidity": 2.0
    }
  ],
  "TimeStamp": "2026-04-05T01:49:37.5482147+05:30",
  "Turbidity": 4.0
}

application/xml, text/xml

Sample:
<TurbidityLevelinput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IoT_API.Models">
  <GatewayId>sample string 2</GatewayId>
  <TimeStamp>2026-04-05T01:49:37.5482147+05:30</TimeStamp>
  <Turbidity>4</Turbidity>
  <TurbidityLevelData>
    <TurbidityLevelData>
      <TimeStamp>2026-04-05T01:49:37.5482147+05:30</TimeStamp>
      <Turbidity>2</Turbidity>
    </TurbidityLevelData>
    <TurbidityLevelData>
      <TimeStamp>2026-04-05T01:49:37.5482147+05:30</TimeStamp>
      <Turbidity>2</Turbidity>
    </TurbidityLevelData>
  </TurbidityLevelData>
  <VillageId>sample string 1</VillageId>
</TurbidityLevelinput>

application/x-www-form-urlencoded

Sample:

Sample not available.