POST api/CropAdvisory/SaveCropAdvisoryFeedbackList

Request Information

URI Parameters

None.

Body Parameters

CropAdvisoryFeedback
NameDescriptionTypeAdditional information
FeedbackID

integer

None.

CropAdvisoryID

integer

None.

UserProfileID

integer

None.

Rating

integer

None.

isFeedback

boolean

None.

Q1

string

None.

Q2

string

None.

Comments

string

None.

Createdby

integer

None.

Updatedby

integer

None.

FarmerName

string

None.

LanguageType

string

None.

RefreshDateTime

string

None.

Request Formats

application/json, text/json

Sample:
{
  "FeedbackID": 1,
  "CropAdvisoryID": 2,
  "UserProfileID": 3,
  "Rating": 4,
  "isFeedback": true,
  "Q1": "sample string 6",
  "Q2": "sample string 7",
  "Comments": "sample string 8",
  "Createdby": 9,
  "Updatedby": 10,
  "FarmerName": "sample string 11",
  "LanguageType": "sample string 12",
  "RefreshDateTime": "sample string 13"
}

application/xml, text/xml

Sample:
<CropAdvisoryFeedback xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGROMET_CROPADVISORY">
  <Comments>sample string 8</Comments>
  <Createdby>9</Createdby>
  <CropAdvisoryID>2</CropAdvisoryID>
  <FarmerName>sample string 11</FarmerName>
  <FeedbackID>1</FeedbackID>
  <LanguageType>sample string 12</LanguageType>
  <Q1>sample string 6</Q1>
  <Q2>sample string 7</Q2>
  <Rating>4</Rating>
  <RefreshDateTime>sample string 13</RefreshDateTime>
  <Updatedby>10</Updatedby>
  <UserProfileID>3</UserProfileID>
  <isFeedback>true</isFeedback>
</CropAdvisoryFeedback>

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>