PUT api/District/UpdateDistrict

Request Information

URI Parameters

None.

Body Parameters

DistrictModel
NameDescriptionTypeAdditional information
DistrictCode

string

None.

DistrictName

string

None.

RegionCode

string

None.

RegionName

string

None.

UpdatedUserCode

string

None.

UpdatedTime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "DistrictCode": "sample string 1",
  "DistrictName": "sample string 2",
  "RegionCode": "sample string 3",
  "RegionName": "sample string 4",
  "UpdatedUserCode": "sample string 5",
  "UpdatedTime": "2026-01-16T20:55:32.6749928+05:30"
}

application/xml, text/xml

Sample:
<DistrictModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KHBWebApi.Models">
  <DistrictCode>sample string 1</DistrictCode>
  <DistrictName>sample string 2</DistrictName>
  <RegionCode>sample string 3</RegionCode>
  <RegionName>sample string 4</RegionName>
  <UpdatedTime>2026-01-16T20:55:32.6749928+05:30</UpdatedTime>
  <UpdatedUserCode>sample string 5</UpdatedUserCode>
</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.