POST api/State/UpadateState

Request Information

URI Parameters

None.

Body Parameters

StateDto
NameDescriptionTypeAdditional information
StateId

integer

None.

Name

string

None.

CountryId

integer

None.

RecordStatus

byte

None.

CountryDto

CountryDto

None.

CityDto

Collection of CityDto

None.

NearByStatesDto

Collection of NearByStateDto

None.

Request Formats

application/json, text/json

Sample:
{
  "stateId": 1,
  "name": "sample string 2",
  "countryId": 3,
  "recordStatus": 64,
  "countryDto": {
    "$id": "2",
    "countryId": 1,
    "name": "sample string 2",
    "recordStatus": 64,
    "currencyId": 4,
    "currencyDto": {
      "$id": "3",
      "currencyId": 1,
      "code": "sample string 2",
      "name": "sample string 3",
      "recordStatus": 64
    }
  },
  "cityDto": [
    {
      "$id": "4",
      "cityId": 1,
      "name": "sample string 2",
      "stateId": 3,
      "recordStatus": 64,
      "stateDto": {
        "$ref": "1"
      }
    },
    {
      "$ref": "4"
    }
  ],
  "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.