POST country/Create

Request Information

URI Parameters

None.

Body Parameters

CountryEntity
NameDescriptionTypeAdditional information
CountryID

integer

None.

CountryName

string

Required

CountryCode

string

None.

Active

integer

None.

TenantID

integer

None.

TenantName

string

None.

Include

boolean

None.

IsDefault

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CountryID": 1,
  "CountryName": "sample string 2",
  "CountryCode": "sample string 3",
  "Active": 4,
  "TenantID": 5,
  "TenantName": "sample string 6",
  "Include": true,
  "IsDefault": true
}

text/html

Sample:
{"CountryID":1,"CountryName":"sample string 2","CountryCode":"sample string 3","Active":4,"TenantID":5,"TenantName":"sample string 6","Include":true,"IsDefault":true}

application/xml, text/xml

Sample:
<CountryEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ListenerOnline.BusinessEntities.Common">
  <Active>4</Active>
  <CountryCode>sample string 3</CountryCode>
  <CountryID>1</CountryID>
  <CountryName>sample string 2</CountryName>
  <Include>true</Include>
  <IsDefault>true</IsDefault>
  <TenantID>5</TenantID>
  <TenantName>sample string 6</TenantName>
</CountryEntity>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.