POST api/Regions/Update

Request Information

URI Parameters

None.

Body Parameters

RegionDtoIn
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

Max length: 30

RegionNumber

string

Max length: 5

Active

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "regionNumber": "sample string 3",
  "active": 4
}

text/html

Sample:
{"id":1,"name":"sample string 2","regionNumber":"sample string 3","active":4}

application/xml, text/xml

Sample:
<RegionDtoIn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DeliveryTrackingSystem.Common.Dtos.Dto.Regions">
  <Active>4</Active>
  <Id>1</Id>
  <Name>sample string 2</Name>
  <RegionNumber>sample string 3</RegionNumber>
</RegionDtoIn>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.