POST api/lookup/City/Update

Request Information

URI Parameters

None.

Body Parameters

CityDto
NameDescriptionTypeAdditional information
Name

string

None.

CountryId

integer

None.

Country

CountryDto

None.

IsActive

boolean

None.

Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "CountryId": 2,
  "Country": {
    "Name": "sample string 1",
    "Code": "sample string 2",
    "Id": 3
  },
  "IsActive": true,
  "Id": 4
}

application/xml, text/xml

Sample:
<CityDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Domain">
  <Id>4</Id>
  <Country>
    <Id>3</Id>
    <Code>sample string 2</Code>
    <Name>sample string 1</Name>
  </Country>
  <CountryId>2</CountryId>
  <IsActive>true</IsActive>
  <Name>sample string 1</Name>
</CityDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CityDto
NameDescriptionTypeAdditional information
Name

string

None.

CountryId

integer

None.

Country

CountryDto

None.

IsActive

boolean

None.

Id

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "CountryId": 2,
  "Country": {
    "Name": "sample string 1",
    "Code": "sample string 2",
    "Id": 3
  },
  "IsActive": true,
  "Id": 4
}

application/xml, text/xml

Sample:
<CityDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Domain">
  <Id>4</Id>
  <Country>
    <Id>3</Id>
    <Code>sample string 2</Code>
    <Name>sample string 1</Name>
  </Country>
  <CountryId>2</CountryId>
  <IsActive>true</IsActive>
  <Name>sample string 1</Name>
</CityDto>