PUT country/update

Updates an existing country

Request Information

URI Parameters

None.

Body Parameters

CountryUpdateRequest object contains the fields to be updated

CountryUpdateRequest
NameDescriptionTypeAdditional information
CountryId

integer

None.

Name

string

None.

Abbreviation

string

None.

RegionId

integer

None.

CountryManagerUserId

integer

None.

IsActive

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CountryId": 1,
  "Name": "sample string 2",
  "Abbreviation": "sample string 3",
  "RegionId": 4,
  "CountryManagerUserId": 1,
  "IsActive": true
}

application/xml, text/xml

Sample:
<CountryUpdateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SALT2.Objects.OrganizationObjects">
  <IsActive xmlns="http://schemas.datacontract.org/2004/07/SALT2.Objects">true</IsActive>
  <Abbreviation>sample string 3</Abbreviation>
  <CountryManagerUserId>1</CountryManagerUserId>
  <Name>sample string 2</Name>
  <RegionId>4</RegionId>
  <CountryId>1</CountryId>
</CountryUpdateRequest>

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

Response Information

Resource Description

CountryUpdateResponse

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.