POST api/User/UpdateInfo

Обновление информации пользователя

Request Information

URI Parameters

None.

Body Parameters

UserInfo
NameDescriptionTypeAdditional information
FirstName

Имя, объязательное поле, максимальное количество 150 символов

string

Required

String length: inclusive between 0 and 150

MiddleName

Отчество, максимальное количество 150 символов

string

String length: inclusive between 0 and 150

LastName

Фамилия, объязательное поле, максимальное количество 150 символов

string

Required

String length: inclusive between 0 and 150

birthdate

Дата рождения, объязательное поле

date

Required

school_id

Школа

integer

None.

Gender

Пол, объязательное поле

boolean

Required

Request Formats

application/json, text/json

Sample:
{
  "FirstName": "sample string 1",
  "MiddleName": "sample string 2",
  "LastName": "sample string 3",
  "birthdate": "2018-07-17T21:04:29.844931+06:00",
  "school_id": 1,
  "Gender": true
}

application/xml, text/xml

Sample:
<UserInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api.Models">
  <FirstName>sample string 1</FirstName>
  <Gender>true</Gender>
  <LastName>sample string 3</LastName>
  <MiddleName>sample string 2</MiddleName>
  <birthdate>2018-07-17T21:04:29.844931+06:00</birthdate>
  <school_id>1</school_id>
</UserInfo>

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.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "Errors": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<ResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api.Models">
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
  <success>true</success>
</ResponseModel>