PUT api/user/profile/scale?id={id}
update user height,gender and date of birth.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
object representing the details that need to update user profile. |
integer |
Required |
Body Parameters
height,gender,dob data to update user profile.
ScaleProfile| Name | Description | Type | Additional information |
|---|---|---|---|
| date_Of_birth |
long milisecond format for date of birth |
decimal number |
Required |
| height |
height is used to calculate user health conditions like BMI etc. |
decimal number |
Required |
| gender |
user gender male or female |
string |
Required |
| time_zone |
user time zone info |
string |
None. |
| weight_unit |
weight unit selected by user. UnitKG = 0, UnitLB = 1, UnitJIN = 2, UnitST = 3, |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"date_Of_birth": 1.1,
"height": 2.1,
"gender": "sample string 3",
"time_zone": "sample string 4",
"weight_unit": 1
}
application/xml, text/xml
Sample:
<scale_profile 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> <gender>sample string 3</gender> <height>2.1</height> <time_zone>sample string 4</time_zone> <weight_unit>1</weight_unit> </scale_profile>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
On success, returns success. On failure, return unauthorized access.
Response| Name | Description | Type | Additional 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>