POST api/WeatherCCE/InsertCases

No documentation available.

Request Information

Parameters

NameDescriptionAdditional information
objCaseDetails
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "ID": 1.0,
  "RequestID": "sample string 2",
  "StatusID": 1.0,
  "StateID": 1.0,
  "DistrictID": 1.0,
  "CropID": 1.0,
  "YearID": 3.0,
  "Remarks": "sample string 4",
  "SeasonID": 1.0,
  "WeatherStationID": 1.0,
  "AssessmentTypeID": 1.0,
  "IsActive": true,
  "LastUpdatedBy": "sample string 5",
  "CreatedDate": 6,
  "LocationMappingID": 1.0,
  "AssignedToUserID": "sample string 7",
  "UserName": "sample string 8",
  "ActionLattitude": 1.1,
  "ActionLongitude": 1.1
}

text/html

Sample:
{"ID":1.0,"RequestID":"sample string 2","StatusID":1.0,"StateID":1.0,"DistrictID":1.0,"CropID":1.0,"YearID":3.0,"Remarks":"sample string 4","SeasonID":1.0,"WeatherStationID":1.0,"AssessmentTypeID":1.0,"IsActive":true,"LastUpdatedBy":"sample string 5","CreatedDate":6,"LocationMappingID":1.0,"AssignedToUserID":"sample string 7","UserName":"sample string 8","ActionLattitude":1.1,"ActionLongitude":1.1}

application/xml, text/xml

Sample:
<DOMCaseDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WeatherInsuranceCCEWebAPIServices.Models">
  <ActionLattitude>1.1</ActionLattitude>
  <ActionLongitude>1.1</ActionLongitude>
  <AssessmentTypeID>1</AssessmentTypeID>
  <AssignedToUserID>sample string 7</AssignedToUserID>
  <CreatedDate>6</CreatedDate>
  <CropID>1</CropID>
  <DistrictID>1</DistrictID>
  <ID>1</ID>
  <IsActive>true</IsActive>
  <LastUpdatedBy>sample string 5</LastUpdatedBy>
  <LocationMappingID>1</LocationMappingID>
  <Remarks>sample string 4</Remarks>
  <RequestID>sample string 2</RequestID>
  <SeasonID>1</SeasonID>
  <StateID>1</StateID>
  <StatusID>1</StatusID>
  <UserName>sample string 8</UserName>
  <WeatherStationID>1</WeatherStationID>
  <YearID>3</YearID>
</DOMCaseDetails>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DOMCaseDetails'.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "Error_Code": 1,
  "Error_Message": "sample string 2",
  "RequestID": "sample string 3",
  "CaseID": 4.0
}

text/html

Sample:
{"Error_Code":1,"Error_Message":"sample string 2","RequestID":"sample string 3","CaseID":4.0}

application/xml, text/xml

Sample:
<ErrorResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WeatherInsuranceCCEWebAPIServices.Models">
  <CaseID>4</CaseID>
  <Error_Code>1</Error_Code>
  <Error_Message>sample string 2</Error_Message>
  <RequestID>sample string 3</RequestID>
</ErrorResponse>