POST api/User/EditUserInfo

amended user information

Request Information

Body Parameters

EditUserInfoModel
NameDescriptionTypeAdditional information
UserId

user id

integer

None.

Username

user

string

None.

Email

email address

string

None.

Address

address

string

None.

Avatar

Avatar, when uploaded, this field value is the Base64 string of the image

string

None.

CellPhone

Telephone number

string

None.

Sim

SIM card number

string

None.

FirstName

string

None.

Gender

gender true male false female

boolean

None.

Birthday

birthday

date

None.

Weight

weight

decimal number

None.

Height

height

decimal number

None.

Steps

steps count the target

integer

None.

Distance

The target range

decimal number

None.

SportTime

The target time

integer

None.

Calorie

Target calorie

integer

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "Username": "sample string 2",
  "Email": "sample string 3",
  "Address": "sample string 4",
  "Avatar": "sample string 5",
  "CellPhone": "sample string 6",
  "Sim": "sample string 7",
  "FirstName": "sample string 8",
  "Gender": true,
  "Birthday": "2018-12-19T13:25:58.1760547+08:00",
  "Weight": 10.1,
  "Height": 11.1,
  "Steps": 12,
  "Distance": 13.1,
  "SportTime": 14,
  "Calorie": 15,
  "Token": "sample string 16",
  "Language": "sample string 17",
  "AppId": "sample string 18"
}

application/xml, text/xml

Sample:
<EditUserInfoModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 18</AppId>
  <Language>sample string 17</Language>
  <Token>sample string 16</Token>
  <Address>sample string 4</Address>
  <Avatar>sample string 5</Avatar>
  <Birthday>2018-12-19T13:25:58.1760547+08:00</Birthday>
  <Calorie>15</Calorie>
  <CellPhone>sample string 6</CellPhone>
  <Distance>13.1</Distance>
  <Email>sample string 3</Email>
  <FirstName>sample string 8</FirstName>
  <Gender>true</Gender>
  <Height>11.1</Height>
  <Sim>sample string 7</Sim>
  <SportTime>14</SportTime>
  <Steps>12</Steps>
  <UserId>1</UserId>
  <Username>sample string 2</Username>
  <Weight>10.1</Weight>
</EditUserInfoModel>

Response Information

Resource Description

Statestatus codeillustrate:
0. success
1000. The user does not exist

NormalResult
NameDescriptionTypeAdditional information
Message

Message [in most cases, the message can be used as a prompt]

string

None.

State

status code

integer

None.

Response Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<NormalResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>2</State>
  <Message>sample string 1</Message>
</NormalResult>