POST api/DailyPrecipObs

Documentation for 'Post'.

Request Information

Parameters

NameDescriptionAdditional information
obs
Documentation for 'obs'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "id": 1,
  "stationId": 2,
  "stationNumber": "sample string 3",
  "stationName": "sample string 4",
  "latitude": 1.0,
  "longitude": 1.0,
  "obsDateTime": "2024-10-03T23:30:46.3777964+00:00",
  "precip": 1.0,
  "precipIsTrace": true,
  "gaugeCatch": 1.0,
  "gaugeCatchIsTrace": true,
  "depthOfSnowfall": 1.0,
  "depthOfSnowfallIsTrace": true,
  "waterContentOfSnowfall": 1.0,
  "waterContentOfSnowfallIsTrace": true,
  "depthOfSnowOnGround": 1.0,
  "depthOfSnowOnGroundIsTrace": true,
  "waterContentOfSnowOnGround": 1.0,
  "waterContentOfSnowOnGroundIsTrace": true,
  "flooding": "sample string 11",
  "notes": "sample string 12",
  "uid": "71e99c02-2d57-411b-af47-eccd945100ed",
  "units": "english",
  "dateTimeStamp": "2024-10-03T23:30:46.3777964+00:00",
  "entryDateTime": "2024-10-03T23:30:46.3777964+00:00",
  "source": "sample string 16"
}

application/xml, text/xml

Sample:
<DailyPrecipObsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cocorahs.Models">
  <DateTimeStamp>2024-10-03T23:30:46.3777964+00:00</DateTimeStamp>
  <DepthOfSnowOnGround>1</DepthOfSnowOnGround>
  <DepthOfSnowOnGroundIsTrace>true</DepthOfSnowOnGroundIsTrace>
  <DepthOfSnowfall>1</DepthOfSnowfall>
  <DepthOfSnowfallIsTrace>true</DepthOfSnowfallIsTrace>
  <EntryDateTime>2024-10-03T23:30:46.3777964+00:00</EntryDateTime>
  <Flooding>sample string 11</Flooding>
  <GaugeCatch>1</GaugeCatch>
  <GaugeCatchIsTrace>true</GaugeCatchIsTrace>
  <Id>1</Id>
  <Latitude>1</Latitude>
  <Longitude>1</Longitude>
  <Notes>sample string 12</Notes>
  <ObsDateTime xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2024-10-03T23:30:46.3777964Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </ObsDateTime>
  <Source>sample string 16</Source>
  <StationId>2</StationId>
  <StationName>sample string 4</StationName>
  <StationNumber>sample string 3</StationNumber>
  <Uid>71e99c02-2d57-411b-af47-eccd945100ed</Uid>
  <Units>English</Units>
  <WaterContentOfSnowOnGround>1</WaterContentOfSnowOnGround>
  <WaterContentOfSnowOnGroundIsTrace>true</WaterContentOfSnowOnGroundIsTrace>
  <WaterContentOfSnowfall>1</WaterContentOfSnowfall>
  <WaterContentOfSnowfallIsTrace>true</WaterContentOfSnowfallIsTrace>
</DailyPrecipObsViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.