POST api/user/editprofile

edit user profile details like name,gender and other details

Request Information

URI Parameters

None.

Body Parameters

object representing the details that need to edit user profile details.

EditProfile
NameDescriptionTypeAdditional information
user_id

Lifetrons user id to edit his/her profile information

integer

Required

display_name

display name set by user on Lifetrons

string

Required

String length: inclusive between 0 and 100

date_Of_birth

long milisecond format for date of birth

decimal number

Required

gender

user gender male or female

string

Required

height

height is used to calculate user health conditions like BMI etc.

decimal number

None.

weight_unit

weight unit selected by user. UnitKG = 0, UnitLB = 1, UnitJIN = 2, UnitST = 3,

integer

None.

sync_data_ToGFit

sync user weight to google fit enabled or not

integer

None.

time_zone

user time zone info

string

None.

Request Formats

application/json, text/json

Sample:
{
  "user_id": 1,
  "display_name": "sample string 2",
  "date_Of_birth": 1.1,
  "gender": "sample string 3",
  "height": 4.1,
  "weight_unit": 1,
  "sync_data_ToGFit": 1,
  "time_zone": "sample string 5"
}

application/xml, text/xml

Sample:
<EditProfile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Models.UsersModel">
  <date_Of_birth>1.1</date_Of_birth>
  <display_name>sample string 2</display_name>
  <gender>sample string 3</gender>
  <height>4.1</height>
  <sync_data_ToGFit>1</sync_data_ToGFit>
  <time_zone>sample string 5</time_zone>
  <user_id>1</user_id>
  <weight_unit>1</weight_unit>
</EditProfile>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

On success, returns Lifetrons response code On failure, return unauthorized access.

Response
NameDescriptionTypeAdditional information
resp_code

Lifetrons response code

string

None.

resp_msg

Lifetrons response message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "resp_code": "sample string 1",
  "resp_msg": "sample string 2"
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Models">
  <resp_code>sample string 1</resp_code>
  <resp_msg>sample string 2</resp_msg>
</Response>