POST api/Farmer
Request Information
URI Parameters
None.
Body Parameters
Farmer| Name | Description | Type | Additional information |
|---|---|---|---|
| FARMER_ID | string |
None. |
|
| FARMER_NAME | string |
None. |
|
| MOBILE_NO | string |
None. |
|
| DISTRICT_ID | string |
None. |
|
| TALUKA_ID | string |
None. |
|
| VILLAGE_ID | string |
None. |
|
| TOTAL_AREA | string |
None. |
|
| string |
None. |
||
| LATTITUDE | string |
None. |
|
| LONGITUDE | string |
None. |
|
| SALESTEAM_ID | string |
None. |
|
| TASK | string |
None. |
|
| CROP_NAME | string |
None. |
|
| ACCESS_TOKEN | string |
None. |
|
| CONTACT_PERSON_NAME | string |
None. |
|
| LOCATION | string |
None. |
|
| ALT_MOB_NO | string |
None. |
|
| MEETING_LOCATION | string |
None. |
|
| STATE_ID | string |
None. |
|
| PERSON_CATEGORY | string |
None. |
|
| CURRENT_PRODUCT_USED | string |
None. |
|
| SUGGESTED_PRODUCT | string |
None. |
|
| REMARK | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"FARMER_ID": "sample string 1",
"FARMER_NAME": "sample string 2",
"MOBILE_NO": "sample string 3",
"DISTRICT_ID": "sample string 4",
"TALUKA_ID": "sample string 5",
"VILLAGE_ID": "sample string 6",
"TOTAL_AREA": "sample string 7",
"EMAIL": "sample string 8",
"LATTITUDE": "sample string 9",
"LONGITUDE": "sample string 10",
"SALESTEAM_ID": "sample string 11",
"TASK": "sample string 12",
"CROP_NAME": "sample string 13",
"ACCESS_TOKEN": "sample string 14",
"CONTACT_PERSON_NAME": "sample string 15",
"LOCATION": "sample string 16",
"ALT_MOB_NO": "sample string 17",
"MEETING_LOCATION": "sample string 18",
"STATE_ID": "sample string 19",
"PERSON_CATEGORY": "sample string 20",
"CURRENT_PRODUCT_USED": "sample string 21",
"SUGGESTED_PRODUCT": "sample string 22",
"REMARK": "sample string 23"
}
application/xml, text/xml
Sample:
<Farmer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiCropguru.Models"> <ACCESS_TOKEN>sample string 14</ACCESS_TOKEN> <ALT_MOB_NO>sample string 17</ALT_MOB_NO> <CONTACT_PERSON_NAME>sample string 15</CONTACT_PERSON_NAME> <CROP_NAME>sample string 13</CROP_NAME> <CURRENT_PRODUCT_USED>sample string 21</CURRENT_PRODUCT_USED> <DISTRICT_ID>sample string 4</DISTRICT_ID> <EMAIL>sample string 8</EMAIL> <FARMER_ID>sample string 1</FARMER_ID> <FARMER_NAME>sample string 2</FARMER_NAME> <LATTITUDE>sample string 9</LATTITUDE> <LOCATION>sample string 16</LOCATION> <LONGITUDE>sample string 10</LONGITUDE> <MEETING_LOCATION>sample string 18</MEETING_LOCATION> <MOBILE_NO>sample string 3</MOBILE_NO> <PERSON_CATEGORY>sample string 20</PERSON_CATEGORY> <REMARK>sample string 23</REMARK> <SALESTEAM_ID>sample string 11</SALESTEAM_ID> <STATE_ID>sample string 19</STATE_ID> <SUGGESTED_PRODUCT>sample string 22</SUGGESTED_PRODUCT> <TALUKA_ID>sample string 5</TALUKA_ID> <TASK>sample string 12</TASK> <TOTAL_AREA>sample string 7</TOTAL_AREA> <VILLAGE_ID>sample string 6</VILLAGE_ID> </Farmer>
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. |