POST api/CmObs

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,
  "dateTimeStamp": "2024-12-22T04:58:57.6255388+00:00",
  "entryDateTime": "2024-12-22T04:58:57.6255388+00:00",
  "source": "sample string 4",
  "stationId": 5,
  "stationNumber": "sample string 6",
  "stationName": "sample string 7",
  "latitude": 1.0,
  "longitude": 1.0,
  "obsDate": "2024-12-22T04:58:57.6255388+00:00",
  "scaleBar": 1,
  "isGeneralAwareness": true,
  "isAgriculture": true,
  "isBusinessAndIndustry": true,
  "isEnergy": true,
  "isFire": true,
  "isPlantsAndWildlife": true,
  "isReliefResponse": true,
  "isSocietyAndPublicHealth": true,
  "isTourismAndRecreation": true,
  "isWaterSupplyAndQuality": true,
  "notes": "sample string 19"
}

application/xml, text/xml

Sample:
<CmObsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cocorahs.Models">
  <DateTimeStamp>2024-12-22T04:58:57.6255388+00:00</DateTimeStamp>
  <EntryDateTime>2024-12-22T04:58:57.6255388+00:00</EntryDateTime>
  <Id>1</Id>
  <IsAgriculture>true</IsAgriculture>
  <IsBusinessAndIndustry>true</IsBusinessAndIndustry>
  <IsEnergy>true</IsEnergy>
  <IsFire>true</IsFire>
  <IsGeneralAwareness>true</IsGeneralAwareness>
  <IsPlantsAndWildlife>true</IsPlantsAndWildlife>
  <IsReliefResponse>true</IsReliefResponse>
  <IsSocietyAndPublicHealth>true</IsSocietyAndPublicHealth>
  <IsTourismAndRecreation>true</IsTourismAndRecreation>
  <IsWaterSupplyAndQuality>true</IsWaterSupplyAndQuality>
  <Latitude>1</Latitude>
  <Longitude>1</Longitude>
  <Notes>sample string 19</Notes>
  <ObsDate>2024-12-22T04:58:57.6255388+00:00</ObsDate>
  <ScaleBar>1</ScaleBar>
  <Source>sample string 4</Source>
  <StationId>5</StationId>
  <StationName>sample string 7</StationName>
  <StationNumber>sample string 6</StationNumber>
</CmObsViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.