PUT api/District/UpdateDistrict/{DI_Id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
DI_Id

integer

Required

Body Parameters

DistrictModel
NameDescriptionTypeAdditional information
DI_Id

integer

None.

DI_Code

string

None.

DI_District

string

None.

DI_ST_Id_Fk

string

None.

ST_StateName

string

None.

ST_Id

integer

None.

ST_StateID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "DI_Id": 1,
  "DI_Code": "sample string 2",
  "DI_District": "sample string 3",
  "DI_ST_Id_Fk": "sample string 4",
  "ST_StateName": "sample string 5",
  "ST_Id": 6,
  "ST_StateID": 7
}

application/xml, text/xml

Sample:
<DistrictModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
  <DI_Code>sample string 2</DI_Code>
  <DI_District>sample string 3</DI_District>
  <DI_Id>1</DI_Id>
  <DI_ST_Id_Fk>sample string 4</DI_ST_Id_Fk>
  <ST_Id>6</ST_Id>
  <ST_StateID>7</ST_StateID>
  <ST_StateName>sample string 5</ST_StateName>
</DistrictModel>

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 'DistrictModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.