POST api/HailObs
Documentation for 'PostAsync'.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| obs | Documentation for 'obs'. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"id": 1,
"uid": "9c16d8fc-d9eb-40c6-a221-e622c61602fb",
"dateTimeStamp": "2026-01-01T21:46:38.4383009+00:00",
"entryDateTime": "2026-01-01T21:46:38.4383009+00:00",
"stationId": 5,
"stationNumber": "sample string 6",
"stationName": "sample string 7",
"latitude": 1.1,
"longitude": 1.1,
"obsDate": "2026-01-01T21:46:38.4383009+00:00",
"obsTime": "2026-01-01T21:46:38.4383009+00:00",
"smallestSize": 1.0,
"averageSize": 1.0,
"largestSize": 1.0,
"angleOfImpact": "sample string 9",
"damage": "sample string 10",
"depthOnGround": "sample string 11",
"durationAccuracy": "sample string 12",
"durationMinutes": 1,
"hailStarted": "sample string 13",
"moreRainThanHail": true,
"timing": "sample string 14",
"notes": "sample string 15",
"hailPadPhotoName": "sample string 16",
"stoneConsistency": "sample string 17",
"largestHailStarted": "sample string 18",
"obsPhotos": [
{
"obsPhotoId": 1,
"obsTypeId": 2,
"obsUid": "1599914c-e6f5-463e-949e-2d6787ad2557",
"obsId": 1,
"createdByUserId": "d16a8001-e034-44cb-a380-f4bc19bfdb38",
"modifiedByUserId": "e9390cf8-5146-45c0-a8cb-c2eb4da5f186",
"creationDate": "2026-01-01T21:46:38.4383009+00:00",
"dateTimeStamp": "2026-01-01T21:46:38.4383009+00:00",
"sortOrder": 7,
"originalUrl": "sample string 8",
"photoUrl": "sample string 9",
"thumbnailUrl": "sample string 10",
"caption": "sample string 11",
"tags": "sample string 12"
},
{
"obsPhotoId": 1,
"obsTypeId": 2,
"obsUid": "1599914c-e6f5-463e-949e-2d6787ad2557",
"obsId": 1,
"createdByUserId": "d16a8001-e034-44cb-a380-f4bc19bfdb38",
"modifiedByUserId": "e9390cf8-5146-45c0-a8cb-c2eb4da5f186",
"creationDate": "2026-01-01T21:46:38.4383009+00:00",
"dateTimeStamp": "2026-01-01T21:46:38.4383009+00:00",
"sortOrder": 7,
"originalUrl": "sample string 8",
"photoUrl": "sample string 9",
"thumbnailUrl": "sample string 10",
"caption": "sample string 11",
"tags": "sample string 12"
},
{
"obsPhotoId": 1,
"obsTypeId": 2,
"obsUid": "1599914c-e6f5-463e-949e-2d6787ad2557",
"obsId": 1,
"createdByUserId": "d16a8001-e034-44cb-a380-f4bc19bfdb38",
"modifiedByUserId": "e9390cf8-5146-45c0-a8cb-c2eb4da5f186",
"creationDate": "2026-01-01T21:46:38.4383009+00:00",
"dateTimeStamp": "2026-01-01T21:46:38.4383009+00:00",
"sortOrder": 7,
"originalUrl": "sample string 8",
"photoUrl": "sample string 9",
"thumbnailUrl": "sample string 10",
"caption": "sample string 11",
"tags": "sample string 12"
}
]
}
application/xml, text/xml
Sample:
<HailObsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cocorahs.Models">
<AngleOfImpact>sample string 9</AngleOfImpact>
<AverageSize>1</AverageSize>
<Damage>sample string 10</Damage>
<DateTimeStamp>2026-01-01T21:46:38.4383009+00:00</DateTimeStamp>
<DepthOnGround>sample string 11</DepthOnGround>
<DurationAccuracy>sample string 12</DurationAccuracy>
<DurationMinutes>1</DurationMinutes>
<EntryDateTime>2026-01-01T21:46:38.4383009+00:00</EntryDateTime>
<HailPadPhotoName>sample string 16</HailPadPhotoName>
<HailStarted>sample string 13</HailStarted>
<Id>1</Id>
<LargestHailStarted>sample string 18</LargestHailStarted>
<LargestSize>1</LargestSize>
<Latitude>1.1</Latitude>
<Longitude>1.1</Longitude>
<MoreRainThanHail>true</MoreRainThanHail>
<Notes>sample string 15</Notes>
<ObsDate>2026-01-01T21:46:38.4383009+00:00</ObsDate>
<ObsPhotos>
<ObsPhotoViewModel>
<Caption>sample string 11</Caption>
<CreatedByUserId>d16a8001-e034-44cb-a380-f4bc19bfdb38</CreatedByUserId>
<CreationDate>2026-01-01T21:46:38.4383009+00:00</CreationDate>
<DateTimeStamp>2026-01-01T21:46:38.4383009+00:00</DateTimeStamp>
<ModifiedByUserId>e9390cf8-5146-45c0-a8cb-c2eb4da5f186</ModifiedByUserId>
<ObsId>1</ObsId>
<ObsPhotoId>1</ObsPhotoId>
<ObsTypeId>2</ObsTypeId>
<ObsUid>1599914c-e6f5-463e-949e-2d6787ad2557</ObsUid>
<OriginalUrl>sample string 8</OriginalUrl>
<PhotoUrl>sample string 9</PhotoUrl>
<SortOrder>7</SortOrder>
<Tags>sample string 12</Tags>
<ThumbnailUrl>sample string 10</ThumbnailUrl>
</ObsPhotoViewModel>
<ObsPhotoViewModel>
<Caption>sample string 11</Caption>
<CreatedByUserId>d16a8001-e034-44cb-a380-f4bc19bfdb38</CreatedByUserId>
<CreationDate>2026-01-01T21:46:38.4383009+00:00</CreationDate>
<DateTimeStamp>2026-01-01T21:46:38.4383009+00:00</DateTimeStamp>
<ModifiedByUserId>e9390cf8-5146-45c0-a8cb-c2eb4da5f186</ModifiedByUserId>
<ObsId>1</ObsId>
<ObsPhotoId>1</ObsPhotoId>
<ObsTypeId>2</ObsTypeId>
<ObsUid>1599914c-e6f5-463e-949e-2d6787ad2557</ObsUid>
<OriginalUrl>sample string 8</OriginalUrl>
<PhotoUrl>sample string 9</PhotoUrl>
<SortOrder>7</SortOrder>
<Tags>sample string 12</Tags>
<ThumbnailUrl>sample string 10</ThumbnailUrl>
</ObsPhotoViewModel>
<ObsPhotoViewModel>
<Caption>sample string 11</Caption>
<CreatedByUserId>d16a8001-e034-44cb-a380-f4bc19bfdb38</CreatedByUserId>
<CreationDate>2026-01-01T21:46:38.4383009+00:00</CreationDate>
<DateTimeStamp>2026-01-01T21:46:38.4383009+00:00</DateTimeStamp>
<ModifiedByUserId>e9390cf8-5146-45c0-a8cb-c2eb4da5f186</ModifiedByUserId>
<ObsId>1</ObsId>
<ObsPhotoId>1</ObsPhotoId>
<ObsTypeId>2</ObsTypeId>
<ObsUid>1599914c-e6f5-463e-949e-2d6787ad2557</ObsUid>
<OriginalUrl>sample string 8</OriginalUrl>
<PhotoUrl>sample string 9</PhotoUrl>
<SortOrder>7</SortOrder>
<Tags>sample string 12</Tags>
<ThumbnailUrl>sample string 10</ThumbnailUrl>
</ObsPhotoViewModel>
</ObsPhotos>
<ObsTime>2026-01-01T21:46:38.4383009+00:00</ObsTime>
<SmallestSize>1</SmallestSize>
<StationId>5</StationId>
<StationName>sample string 7</StationName>
<StationNumber>sample string 6</StationNumber>
<StoneConsistency>sample string 17</StoneConsistency>
<Timing>sample string 14</Timing>
<Uid>9c16d8fc-d9eb-40c6-a221-e622c61602fb</Uid>
</HailObsViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.