POST api/PlotVisit?TYPE={TYPE}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| TYPE | string |
Required |
Body Parameters
FarmerVisit| Name | Description | Type | Additional information |
|---|---|---|---|
| FARMERVISIT_ID | string |
None. |
|
| FARMER_ID | string |
None. |
|
| PLOT_STAGE_ID | string |
None. |
|
| CROP_ID | string |
None. |
|
| PLOT_ID | string |
None. |
|
| ADDRESS | string |
None. |
|
| LATITUDE | string |
None. |
|
| LONGITUDE | string |
None. |
|
| AREA | string |
None. |
|
| VISIT_DATE | string |
None. |
|
| NEXT_VISIT_DATE | string |
None. |
|
| MEETING_TYPE | string |
None. |
|
| REMARK | string |
None. |
|
| TASK | string |
None. |
|
| MEETING_LOCATION | string |
None. |
|
| CR_ID | string |
None. |
|
| ACCESS_TOKEN | string |
None. |
|
| SCHEDULE_PHOTO | Collection of byte |
None. |
Request Formats
application/json, text/json
Sample:
{
"FARMERVISIT_ID": "sample string 1",
"FARMER_ID": "sample string 2",
"PLOT_STAGE_ID": "sample string 3",
"CROP_ID": "sample string 4",
"PLOT_ID": "sample string 5",
"ADDRESS": "sample string 6",
"LATITUDE": "sample string 7",
"LONGITUDE": "sample string 8",
"AREA": "sample string 9",
"VISIT_DATE": "sample string 10",
"NEXT_VISIT_DATE": "sample string 11",
"MEETING_TYPE": "sample string 12",
"REMARK": "sample string 13",
"TASK": "sample string 14",
"MEETING_LOCATION": "sample string 15",
"CR_ID": "sample string 16",
"ACCESS_TOKEN": "sample string 17",
"SCHEDULE_PHOTO": "QEA="
}
application/xml, text/xml
Sample:
<FarmerVisit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiOnionFarming.Models"> <ACCESS_TOKEN>sample string 17</ACCESS_TOKEN> <ADDRESS>sample string 6</ADDRESS> <AREA>sample string 9</AREA> <CROP_ID>sample string 4</CROP_ID> <CR_ID>sample string 16</CR_ID> <FARMERVISIT_ID>sample string 1</FARMERVISIT_ID> <FARMER_ID>sample string 2</FARMER_ID> <LATITUDE>sample string 7</LATITUDE> <LONGITUDE>sample string 8</LONGITUDE> <MEETING_LOCATION>sample string 15</MEETING_LOCATION> <MEETING_TYPE>sample string 12</MEETING_TYPE> <NEXT_VISIT_DATE>sample string 11</NEXT_VISIT_DATE> <PLOT_ID>sample string 5</PLOT_ID> <PLOT_STAGE_ID>sample string 3</PLOT_STAGE_ID> <REMARK>sample string 13</REMARK> <SCHEDULE_PHOTO>QEA=</SCHEDULE_PHOTO> <TASK>sample string 14</TASK> <VISIT_DATE>sample string 10</VISIT_DATE> </FarmerVisit>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |