POST api/CropAdvisory/SaveCropAdvisoryBlock

Request Information

URI Parameters

None.

Body Parameters

CropAdvisoryBlock
NameDescriptionTypeAdditional information
CropAdvisoryID

integer

None.

BlockName

string

None.

CABMID

integer

None.

BlockID

integer

None.

AsdID

integer

None.

AsdName

string

None.

DistrictID

integer

None.

Createdby

integer

None.

Updatedby

integer

None.

RefreshDateTime

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CropAdvisoryID": 1,
  "BlockName": "sample string 2",
  "CABMID": 3,
  "BlockID": 4,
  "AsdID": 5,
  "AsdName": "sample string 6",
  "DistrictID": 7,
  "Createdby": 8,
  "Updatedby": 9,
  "RefreshDateTime": "sample string 10"
}

application/xml, text/xml

Sample:
<CropAdvisoryBlock xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGROMET_CROPADVISORY">
  <AsdID>5</AsdID>
  <AsdName>sample string 6</AsdName>
  <BlockID>4</BlockID>
  <BlockName>sample string 2</BlockName>
  <CABMID>3</CABMID>
  <Createdby>8</Createdby>
  <CropAdvisoryID>1</CropAdvisoryID>
  <DistrictID>7</DistrictID>
  <RefreshDateTime>sample string 10</RefreshDateTime>
  <Updatedby>9</Updatedby>
</CropAdvisoryBlock>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

TransactionDetails
NameDescriptionTypeAdditional information
IsSuccessful

boolean

None.

SuccessMessage

string

None.

ErrorMessage

string

None.

NewID

integer

None.

FileUrl

string

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccessful": true,
  "SuccessMessage": "sample string 2",
  "ErrorMessage": "sample string 3",
  "NewID": 4,
  "FileUrl": "sample string 5"
}

application/xml, text/xml

Sample:
<TransactionDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGROMET_COMMON">
  <ErrorMessage>sample string 3</ErrorMessage>
  <FileUrl>sample string 5</FileUrl>
  <IsSuccessful>true</IsSuccessful>
  <NewID>4</NewID>
  <SuccessMessage>sample string 2</SuccessMessage>
</TransactionDetails>