POST api/User/UserType

Обновление типа пользователя

Request Information

URI Parameters

None.

Body Parameters

Тип пользователя

UserTypes
NameDescriptionTypeAdditional information
mom

Мама

boolean

None.

pregnant

Беременная

boolean

None.

planning

Беременная

boolean

None.

pregnant_week

Неделя беременности, объязательное объязателен если тип профиля 'Беременная"

integer

None.

day_number

День беременности, объязательное объязателен если тип профиля 'Беременная"

integer

None.

cycle

Беременная

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "mom": true,
  "pregnant": true,
  "planning": true,
  "pregnant_week": 1,
  "day_number": 1,
  "cycle": true
}

text/html

Sample:
{"mom":true,"pregnant":true,"planning":true,"pregnant_week":1,"day_number":1,"cycle":true}

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}