POST api/user/scale/profiles/create/{id}
create user profile for scale data
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Logged in user id |
integer |
Required |
Body Parameters
object representing the details that need to create/update scale user profile.
CreateScaleUserProfileReqName | Description | Type | Additional information |
---|---|---|---|
profile_id |
profile id is required when user want to update details |
integer |
None. |
name |
chosen title for group by user |
string |
Required String length: inclusive between 0 and 100 |
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. height in cm |
integer |
Required |
gender |
user gender male or female |
string |
Required |
country_code |
user mobile number country code to send otp |
string |
None. |
mobile_number |
user mobile number to send otp for verification |
string |
Matching regular expression pattern: ^\d{4,13}$ |
Request Formats
application/json, text/json
{ "profile_id": 1, "name": "sample string 1", "date_Of_birth": 2.1, "height": 3, "gender": "sample string 4", "country_code": "sample string 5", "mobile_number": "sample string 6" }
application/xml, text/xml
<create_scale_user_profile_req xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.RequestAgg.v5"> <country_code>sample string 5</country_code> <date_Of_birth>2.1</date_Of_birth> <gender>sample string 4</gender> <height>3</height> <mobile_number>sample string 6</mobile_number> <name>sample string 1</name> <profile_id>1</profile_id> </create_scale_user_profile_req>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
On success, return recently created or updated scale user info. On failure, return null with Lifetrons response code.
GenericRespName | Description | Type | Additional information |
---|---|---|---|
id |
generic id to return |
integer |
None. |
other_user_id |
this is used when user remove member from group or other id |
integer |
None. |
mapping_id |
string mapping id to return to client |
string |
None. |
string_id |
any string id to return to client |
string |
None. |
resp_code |
Lifetrons response code |
string |
None. |
resp_msg |
Lifetrons response message |
string |
None. |
Response Formats
application/json, text/json
{ "id": 1, "other_user_id": 1, "mapping_id": "sample string 1", "string_id": "sample string 2", "resp_code": "sample string 3", "resp_msg": "sample string 4" }
application/xml, text/xml
<generic_resp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.ResponseAgg.v5"> <resp_code xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Models">sample string 3</resp_code> <resp_msg xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Models">sample string 4</resp_msg> <id>1</id> <mapping_id>sample string 1</mapping_id> <other_user_id>1</other_user_id> <string_id>sample string 2</string_id> </generic_resp>