POST api/City/Edit

Request Information

URI Parameters

None.

Requires Authorization!

Body Parameters

CityCreateViewModel
NameDescriptionTypeAdditional information
CityID

integer

None.

CountryID

integer

None.

CityEnglishName

string

Required

Matching regular expression pattern: [a-zA-Z0-9\s]{3,}

String length: inclusive between 3 and 30

CityArbicName

string

Required

String length: inclusive between 3 and 30

CountryEngName

string

None.

CountryArbName

string

None.

IsDeleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CityID": 1,
  "CountryID": 2,
  "CityEnglishName": "sample string 3",
  "CityArbicName": "sample string 4",
  "CountryEngName": "sample string 5",
  "CountryArbName": "sample string 6",
  "IsDeleted": true
}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.