PUT api/country/update-from-api

Request Information

URI Parameters

None.

Body Parameters

Collection of CountryModel
NameDescriptionTypeAdditional information
CountryId

integer

None.

CountryCode

string

None.

Alpha2Code

string

None.

CountryName

string

None.

DefaultRegion

string

None.

SubRegion

string

None.

DefaultCurrency

string

None.

CurrencyCode

string

None.

Flag

string

None.

Active

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "CountryId": 1,
    "CountryCode": "sample string 2",
    "Alpha2Code": "sample string 3",
    "CountryName": "sample string 4",
    "DefaultRegion": "sample string 5",
    "SubRegion": "sample string 6",
    "DefaultCurrency": "sample string 7",
    "CurrencyCode": "sample string 8",
    "Flag": "sample string 9",
    "Active": true
  },
  {
    "CountryId": 1,
    "CountryCode": "sample string 2",
    "Alpha2Code": "sample string 3",
    "CountryName": "sample string 4",
    "DefaultRegion": "sample string 5",
    "SubRegion": "sample string 6",
    "DefaultCurrency": "sample string 7",
    "CurrencyCode": "sample string 8",
    "Flag": "sample string 9",
    "Active": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfCountryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ALTAMBS.Business.Entities.Models">
  <CountryModel>
    <Active>true</Active>
    <Alpha2Code>sample string 3</Alpha2Code>
    <CountryCode>sample string 2</CountryCode>
    <CountryId>1</CountryId>
    <CountryName>sample string 4</CountryName>
    <CurrencyCode>sample string 8</CurrencyCode>
    <DefaultCurrency>sample string 7</DefaultCurrency>
    <DefaultRegion>sample string 5</DefaultRegion>
    <Flag>sample string 9</Flag>
    <SubRegion>sample string 6</SubRegion>
  </CountryModel>
  <CountryModel>
    <Active>true</Active>
    <Alpha2Code>sample string 3</Alpha2Code>
    <CountryCode>sample string 2</CountryCode>
    <CountryId>1</CountryId>
    <CountryName>sample string 4</CountryName>
    <CurrencyCode>sample string 8</CurrencyCode>
    <DefaultCurrency>sample string 7</DefaultCurrency>
    <DefaultRegion>sample string 5</DefaultRegion>
    <Flag>sample string 9</Flag>
    <SubRegion>sample string 6</SubRegion>
  </CountryModel>
</ArrayOfCountryModel>

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 'CountryModel[]'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.