POST api/Village

Request Information

URI Parameters

None.

Body Parameters

VillageModels
NameDescriptionTypeAdditional information
VI_Id

integer

None.

VI_VillageId

string

None.

StateSpeedSearch

StateSpeedSearchModels

Required

DistrictSpeedSearch

DistrictSpeedSearchModels

Required

TalukSpeedSearch

TalukSpeedSearchModels

Required

VI_Village

string

Required

Max length: -1

VI_PinCode

integer

Required

VI_UserId_FK

integer

None.

VI_TS

date

None.

VI_Inactive

character

None.

VI_TS_LastEdited

date

None.

VI_TS_Edited_Uid_FK

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "VI_Id": 1,
  "VI_VillageId": "sample string 2",
  "StateSpeedSearch": {
    "ST_Id": 1,
    "ST_StateID": "sample string 2",
    "ST_StateName": "sample string 3"
  },
  "DistrictSpeedSearch": {
    "DI_Id": 1,
    "DI_DistrictId": "sample string 2",
    "DI_District": "sample string 3"
  },
  "TalukSpeedSearch": {
    "TA_Id": 1,
    "TA_TalukId": "sample string 2",
    "TA_Taluk": "sample string 3"
  },
  "VI_Village": "sample string 3",
  "VI_PinCode": 4,
  "VI_UserId_FK": 5,
  "VI_TS": "2024-04-16T15:29:59.501388+05:30",
  "VI_Inactive": "A",
  "VI_TS_LastEdited": "2024-04-16T15:29:59.5018859+05:30",
  "VI_TS_Edited_Uid_FK": 9
}

application/xml, text/xml

Sample:
<VillageModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <DistrictSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
    <d2p1:DI_District>sample string 3</d2p1:DI_District>
    <d2p1:DI_DistrictId>sample string 2</d2p1:DI_DistrictId>
    <d2p1:DI_Id>1</d2p1:DI_Id>
  </DistrictSpeedSearch>
  <StateSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
    <d2p1:ST_Id>1</d2p1:ST_Id>
    <d2p1:ST_StateID>sample string 2</d2p1:ST_StateID>
    <d2p1:ST_StateName>sample string 3</d2p1:ST_StateName>
  </StateSpeedSearch>
  <TalukSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
    <d2p1:TA_Id>1</d2p1:TA_Id>
    <d2p1:TA_Taluk>sample string 3</d2p1:TA_Taluk>
    <d2p1:TA_TalukId>sample string 2</d2p1:TA_TalukId>
  </TalukSpeedSearch>
  <VI_Id>1</VI_Id>
  <VI_Inactive>65</VI_Inactive>
  <VI_PinCode>4</VI_PinCode>
  <VI_TS>2024-04-16T15:29:59.501388+05:30</VI_TS>
  <VI_TS_Edited_Uid_FK>9</VI_TS_Edited_Uid_FK>
  <VI_TS_LastEdited>2024-04-16T15:29:59.5018859+05:30</VI_TS_LastEdited>
  <VI_UserId_FK>5</VI_UserId_FK>
  <VI_Village>sample string 3</VI_Village>
  <VI_VillageId>sample string 2</VI_VillageId>
</VillageModels>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'VillageModels'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.