POST Web/masterdata/savedistrict

Request Information

URI Parameters

None.

Body Parameters

DistrictsDto
NameDescriptionTypeAdditional information
DistrictId

integer

None.

DistrictName

string

None.

DistrictCode

string

None.

ZoneName

string

None.

ZoneId

integer

None.

PackageName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DistrictId": 1,
  "DistrictName": "sample string 2",
  "DistrictCode": "sample string 3",
  "ZoneName": "sample string 4",
  "ZoneId": 5,
  "PackageName": "sample string 6"
}

text/html

Sample:
{"DistrictId":1,"DistrictName":"sample string 2","DistrictCode":"sample string 3","ZoneName":"sample string 4","ZoneId":5,"PackageName":"sample string 6"}

application/xml, text/xml

Sample:
<DistrictsDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tracking.Entity">
  <DistrictCode>sample string 3</DistrictCode>
  <DistrictId>1</DistrictId>
  <DistrictName>sample string 2</DistrictName>
  <PackageName>sample string 6</PackageName>
  <ZoneId>5</ZoneId>
  <ZoneName>sample string 4</ZoneName>
</DistrictsDto>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.