POST api/SleepAccount/UpdateUserInfo

更新用户信息

Request Information

URI Parameters

None.

Body Parameters

UpdateUserInfoModel
NameDescriptionTypeAdditional information
headUrl

string

None.

nickName

string

None.

sex

integer

None.

province

string

None.

city

string

None.

birthday

string

None.

signature

string

None.

uid

string

None.

pid

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "headUrl": "sample string 1",
  "nickName": "sample string 2",
  "sex": 3,
  "province": "sample string 4",
  "city": "sample string 5",
  "birthday": "sample string 6",
  "signature": "sample string 7",
  "uid": "sample string 8",
  "pid": 9
}

application/xml, text/xml

Sample:
<UpdateUserInfoModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <birthday>sample string 6</birthday>
  <city>sample string 5</city>
  <headUrl>sample string 1</headUrl>
  <nickName>sample string 2</nickName>
  <pid>9</pid>
  <province>sample string 4</province>
  <sex>3</sex>
  <signature>sample string 7</signature>
  <uid>sample string 8</uid>
</UpdateUserInfoModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseResponse
NameDescriptionTypeAdditional information
Message

消息

string

None.

Status

状态,默认情况下,1为成功。0为失败。99为权限验证失败。

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "Status": 2
}

application/xml, text/xml

Sample:
<BaseResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">
  <Message>sample string 1</Message>
  <Status>2</Status>
</BaseResponse>