POST api/User/UpdateCountryCity

Обновление Страны и города

Request Information

URI Parameters

None.

Body Parameters

UserCountryCity
NameDescriptionTypeAdditional information
country_rid

Страна, объязательное поле, справочник Country

integer

Required

city_rid

Город, справочник Cities

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "country_rid": 1,
  "city_rid": 1
}

text/html

Sample:
{"country_rid":1,"city_rid":1}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseModel
NameDescriptionTypeAdditional information
success

Успешность запроса true, false

boolean

None.

Errors

Ошибка запроса

Collection of string

None.

result

Объект

Object

None.

new_level

Новый уровень

integer

None.

add_bonus

Добавленный бонус

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "Errors": [
    "sample string 1",
    "sample string 2"
  ],
  "result": {},
  "new_level": 1,
  "add_bonus": 1.0
}

text/html

Sample:
{"success":true,"Errors":["sample string 1","sample string 2"],"result":{},"new_level":1,"add_bonus":1.0}