POST api/City/UpdateCity

Request Information

URI Parameters

None.

Body Parameters

CityDto
NameDescriptionTypeAdditional information
CityId

integer

None.

Name

string

None.

StateId

integer

None.

RecordStatus

byte

None.

StateDto

StateDto

None.

Request Formats

application/json, text/json

Sample:
{
  "cityId": 1,
  "name": "sample string 2",
  "stateId": 3,
  "recordStatus": 64,
  "stateDto": {
    "$id": "2",
    "stateId": 1,
    "name": "sample string 2",
    "countryId": 3,
    "recordStatus": 64,
    "countryDto": {
      "$id": "3",
      "countryId": 1,
      "name": "sample string 2",
      "recordStatus": 64,
      "currencyId": 4,
      "currencyDto": {
        "$id": "4",
        "currencyId": 1,
        "code": "sample string 2",
        "name": "sample string 3",
        "recordStatus": 64
      }
    },
    "cityDto": [
      {
        "$ref": "1"
      },
      {
        "$ref": "1"
      }
    ],
    "nearByStatesDto": [
      {
        "$id": "5",
        "nearByStatesId": 1,
        "parentStateId": 2,
        "stateId": 3,
        "recordStatus": 64
      },
      {
        "$ref": "5"
      }
    ]
  }
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpStatusCodeResult
NameDescriptionTypeAdditional information
StatusCode

integer

None.

StatusDescription

string

None.

Response Formats

application/json, text/json

Sample:

Sample not available.