POST api/Countries
Request Information
URI Parameters
None.
Body Parameters
CountryEditViewModelName | Description | Type | Additional information |
---|---|---|---|
countryId | globally unique identifier |
Required |
|
countryCode | string |
Required Max length: 2 |
|
countryName | string |
Required Max length: 255 |
|
geographicRegion | string |
Max length: 25 |
|
regionType | string |
Max length: 25 |
|
sortOrder | integer |
Required |
|
defaultLanguage | string |
Max length: 5 |
Request Formats
application/json, text/json
Sample:
{ "countryId": "a62f7bdb-7e37-403e-a706-63888f57a9ec", "countryCode": "sample string 2", "countryName": "sample string 3", "geographicRegion": "sample string 4", "regionType": "sample string 5", "sortOrder": 6, "defaultLanguage": "sample string 7" }
application/xml, text/xml
Sample:
<CountryEditViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Portal.Api.Models"> <countryCode>sample string 2</countryCode> <countryId>a62f7bdb-7e37-403e-a706-63888f57a9ec</countryId> <countryName>sample string 3</countryName> <defaultLanguage>sample string 7</defaultLanguage> <geographicRegion>sample string 4</geographicRegion> <regionType>sample string 5</regionType> <sortOrder>6</sortOrder> </CountryEditViewModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |