POST api/CropAdvisory/SaveCropAdvisoryCrop
Request Information
URI Parameters
None.
Body Parameters
CropAdvisoryCrop| Name | Description | Type | Additional information |
|---|---|---|---|
| CACMID | integer |
None. |
|
| CropAdvisoryID | integer |
None. |
|
| Type | string |
None. |
|
| CropName | string |
None. |
|
| CropID | integer |
None. |
|
| ID | integer |
None. |
|
| CropCategoryID | integer |
None. |
|
| ThumbNailBytes | Collection of byte |
None. |
|
| Createdby | integer |
None. |
|
| Updatedby | integer |
None. |
|
| LanguageType | string |
None. |
|
| RefreshDateTime | string |
None. |
|
| CropImageURL | string |
None. |
|
| VarietyName | string |
None. |
|
| VarietyId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"CACMID": 1,
"CropAdvisoryID": 2,
"Type": "sample string 3",
"CropName": "sample string 4",
"CropID": 5,
"ID": 6,
"CropCategoryID": 7,
"ThumbNailBytes": "QEA=",
"Createdby": 8,
"Updatedby": 9,
"LanguageType": "sample string 10",
"RefreshDateTime": "sample string 11",
"CropImageURL": "sample string 12",
"VarietyName": "sample string 13",
"VarietyId": 14
}
application/xml, text/xml
Sample:
<CropAdvisoryCrop xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGROMET_CROPADVISORY"> <CACMID>1</CACMID> <Createdby>8</Createdby> <CropAdvisoryID>2</CropAdvisoryID> <CropCategoryID>7</CropCategoryID> <CropID>5</CropID> <CropImageURL>sample string 12</CropImageURL> <CropName>sample string 4</CropName> <ID>6</ID> <LanguageType>sample string 10</LanguageType> <RefreshDateTime>sample string 11</RefreshDateTime> <ThumbNailBytes>QEA=</ThumbNailBytes> <Type>sample string 3</Type> <Updatedby>9</Updatedby> <VarietyId>14</VarietyId> <VarietyName>sample string 13</VarietyName> </CropAdvisoryCrop>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
TransactionDetails| Name | Description | Type | Additional 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>