POST province/Update

Request Information

URI Parameters

None.

Body Parameters

ProvinceEntity
NameDescriptionTypeAdditional information
ProvinceId

integer

None.

ProvinceName

string

None.

CountryId

integer

None.

Active

boolean

None.

TenantID

integer

None.

TenantName

string

None.

Include

boolean

None.

CountryName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ProvinceId": 1,
  "ProvinceName": "sample string 2",
  "CountryId": 3,
  "Active": true,
  "TenantID": 5,
  "TenantName": "sample string 6",
  "Include": true,
  "CountryName": "sample string 8"
}

text/html

Sample:
{"ProvinceId":1,"ProvinceName":"sample string 2","CountryId":3,"Active":true,"TenantID":5,"TenantName":"sample string 6","Include":true,"CountryName":"sample string 8"}

application/xml, text/xml

Sample:
<ProvinceEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ListenerOnline.BusinessEntities.Areas">
  <Active>true</Active>
  <CountryId>3</CountryId>
  <CountryName>sample string 8</CountryName>
  <Include>true</Include>
  <ProvinceId>1</ProvinceId>
  <ProvinceName>sample string 2</ProvinceName>
  <TenantID>5</TenantID>
  <TenantName>sample string 6</TenantName>
</ProvinceEntity>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.